com.cafesoft.core.pool
Class ObjectPoolExceptionType

java.lang.Object
  |
  +--com.cafesoft.core.pool.ObjectPoolExceptionType

public final class ObjectPoolExceptionType
extends Object

A type safe constant class that contains several exception types that relay important contextual information to the clients that are handling ObjectPoolExceptions.

Since:
11/11/03
See Also:
ObjectPoolException

Field Summary
static ObjectPoolExceptionType NO_MORE_OBJECTS
          ObjectPoolExceptionType : No More Objects.
static ObjectPoolExceptionType UNKNOWN
          ObjectPoolExceptionType : Unknown.
 
Method Summary
 boolean equals(Object object)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for the object.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final ObjectPoolExceptionType UNKNOWN
ObjectPoolExceptionType : Unknown. This is the default ObjectPoolExceptionType and is used in cases where old code has not been retrofitted to incorporate an exception type. Therefore, this type is used as a placeholder to avoid NullPointerExceptions and the like.


NO_MORE_OBJECTS

public static final ObjectPoolExceptionType NO_MORE_OBJECTS
ObjectPoolExceptionType : No More Objects. Represents that the ObjectPool contains no more objects for use. This differs from a PoolAtMaximumException, which indicates that there are no more objects because we have reached a max and cannot create more. This exception type indicates that we don't have any more objects and we don't know how to create any more objects.

Method Detail

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

equals

public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
object - the reference object with which to compare.
Returns:
true if this object is the same as the object argument; false otherwise.

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.