org.ehcache.clustered.common
Class ServerSideConfiguration.Pool

java.lang.Object
  extended by org.ehcache.clustered.common.ServerSideConfiguration.Pool
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ServerSideConfiguration

public static final class ServerSideConfiguration.Pool
extends java.lang.Object
implements java.io.Serializable

The definition of a pool that can be shared by multiple caches.

See Also:
Serialized Form

Constructor Summary
ServerSideConfiguration.Pool(long size)
          Creates a new pool definition with the given size, consuming the default server resource.
ServerSideConfiguration.Pool(long size, java.lang.String serverResource)
          Creates a new pool definition with the given size, consuming the given server resource.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getServerResource()
          Returns the server resource consumed by this pool, or null if the default pool will be used.
 long getSize()
          Returns the size of the pool in bytes.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerSideConfiguration.Pool

public ServerSideConfiguration.Pool(long size,
                                    java.lang.String serverResource)
Creates a new pool definition with the given size, consuming the given server resource.

Parameters:
size - pool size
serverResource - the server resource to consume

ServerSideConfiguration.Pool

public ServerSideConfiguration.Pool(long size)
Creates a new pool definition with the given size, consuming the default server resource.

Parameters:
size - pool size
Method Detail

getSize

public long getSize()
Returns the size of the pool in bytes.

Returns:
pool size

getServerResource

public java.lang.String getServerResource()
Returns the server resource consumed by this pool, or null if the default pool will be used.

Returns:
the server resource to consume

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object