CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.net
Class RequestTimeoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.tangosol.net.ClusterException
                  extended by com.tangosol.net.RequestTimeoutException
All Implemented Interfaces:
Serializable

public class RequestTimeoutException
extends ClusterException

Signals that a request execution in a clustered environment did not complete in a pre-determined amount of time. For some specific requests this exception could carry a partial execution result.

Since:
Coherence 3.3
Author:
gg 2006.11.02
See Also:
PriorityTask

Constructor Summary
RequestTimeoutException()
          Constructs a RequestTimeoutException with no detail message.
RequestTimeoutException(String s)
          Constructs a RequestTimeoutException with the specified detail message.
RequestTimeoutException(String s, Throwable e)
          Construct a RequestTimeoutException from a Throwable object and an additional description.
RequestTimeoutException(Throwable e)
          Construct a RequestTimeoutException from a Throwable object.
 
Method Summary
 Object getPartialResult()
          Return a partial execution result that may have been assembled prior to the timeout.
 void setPartialResult(Object oPartialResult)
          Specify a partial execution result.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 

Constructor Detail

RequestTimeoutException

public RequestTimeoutException()
Constructs a RequestTimeoutException with no detail message.


RequestTimeoutException

public RequestTimeoutException(String s)
Constructs a RequestTimeoutException with the specified detail message.

Parameters:
s - the String that contains a detailed message

RequestTimeoutException

public RequestTimeoutException(Throwable e)
Construct a RequestTimeoutException from a Throwable object.

Parameters:
e - the Throwable object

RequestTimeoutException

public RequestTimeoutException(String s,
                               Throwable e)
Construct a RequestTimeoutException from a Throwable object and an additional description.

Parameters:
s - the additional description
e - the Throwable object
Method Detail

getPartialResult

public Object getPartialResult()
Return a partial execution result that may have been assembled prior to the timeout. The result type is usually the same as the Java type of the return value for the corresponding request.

Returns:
a partial execution result

setPartialResult

public void setPartialResult(Object oPartialResult)
Specify a partial execution result.

Parameters:
oPartialResult - a partial execution result

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation