net.spy.memcached.internal
Class CheckedOperationTimeoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.util.concurrent.TimeoutException
              extended by net.spy.memcached.internal.CheckedOperationTimeoutException
All Implemented Interfaces:
Serializable

public class CheckedOperationTimeoutException
extends TimeoutException

Timeout exception that tracks the original operation.

See Also:
Serialized Form

Constructor Summary
CheckedOperationTimeoutException(String message, Collection<Operation> ops)
           
CheckedOperationTimeoutException(String message, Operation op)
          Construct a CheckedOperationTimeoutException with the given message and operation.
 
Method Summary
 Collection<Operation> getOperations()
          Get the operation that timed out.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckedOperationTimeoutException

public CheckedOperationTimeoutException(String message,
                                        Operation op)
Construct a CheckedOperationTimeoutException with the given message and operation.

Parameters:
message - the message
op - the operation that timed out

CheckedOperationTimeoutException

public CheckedOperationTimeoutException(String message,
                                        Collection<Operation> ops)
Method Detail

getOperations

public Collection<Operation> getOperations()
Get the operation that timed out.