FileDocCategorySizeDatePackage
Pool.javaAPI DocGlassfish v2 API4369Fri May 04 22:24:44 BST 2007com.sun.enterprise.admin.wsmgmt.pool.spi

Pool

public interface Pool
Pool used to keep track of SOAP messages.

Fields Summary
Constructors Summary
Methods Summary
public voidclear()
Removes all mappings from this pool.

public booleancontainsKey(java.lang.Object key)
Returns true if this pool contains mapping for the specified key.

param
key the presence of the key to be tested
return
true if this pool contains mapping for the specified key

public booleancontainsValue(java.lang.Object val)
Returns true if this pool contains mapping for the specified value.

param
val the presence of the value to be tested
return
true if this pool contains mapping for the specified value

public java.lang.Objectget(java.lang.Object key)
Returns the object for the given key.

param
key key used to put objects in the pool
return
object for the given key or null

public intgetMaxSize()
Returns the maximum number of mappings allowed in this pool.

return
max number of mappings allowed

public java.lang.StringgetName()
Returns the name of this pool.

return
name of this pool

public java.lang.Objectput(java.lang.Object key, java.lang.Object val)
Adds the object to the pool.

param
key key used to put this object
param
val actual object to be added to the pool
return
previous value for this key or null

public java.lang.Objectremove(java.lang.Object key)
Removes this keyed entry from the pool.

param
key key of the entry that is targeted to be removed
return
removed entry or null if key not found

public voidresize(int size)
Resets the max size of the pool. If new size is less than current size, all extra entries in the pool will be removed.

param
size new max size of the pool

public intsize()
Returns the number of mappings in this pool.

return
current number of mappings in this pool

public java.util.Collectionvalues()
Returns a collection view of the values contained in this pool.

return
a collection view of the values contained in this pool