Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


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.io.pof.PortableException
                  extended by com.tangosol.net.RequestTimeoutException

All Implemented Interfaces:
PortableObject, java.io.Serializable

public class RequestTimeoutException
extends PortableException

Signals that a request execution in a distributed 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

Field Summary

 

Fields inherited from class com.tangosol.io.pof.PortableException
m_asStackRemote, m_sMessage, m_sName

 

Constructor Summary
RequestTimeoutException()
          Constructs a RequestTimeoutException with no detail message.
RequestTimeoutException(java.lang.String s)
          Constructs a RequestTimeoutException with the specified detail message.
RequestTimeoutException(java.lang.String s, java.lang.Throwable e)
          Construct a RequestTimeoutException from a Throwable object and an additional description.
RequestTimeoutException(java.lang.Throwable e)
          Construct a RequestTimeoutException from a Throwable object.

 

Method Summary
 java.lang.Object getPartialResult()
          Return a partial execution result that may have been assembled prior to the timeout.
 void readExternal(PofReader in)
          Restore the contents of a user type instance by reading its state using the specified PofReader object.
 void setPartialResult(java.lang.Object oPartialResult)
          Specify a partial execution result.
 void writeExternal(PofWriter out)
          Save the contents of a POF user type instance by writing its state using the specified PofWriter object.

 

Methods inherited from class com.tangosol.io.pof.PortableException
getFullStackTrace, getMessage, getName, printStackTrace, printStackTrace, toString

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace

 

Constructor Detail

RequestTimeoutException

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

RequestTimeoutException

public RequestTimeoutException(java.lang.String s)
Constructs a RequestTimeoutException with the specified detail message.
Parameters:
s - the String that contains a detailed message

RequestTimeoutException

public RequestTimeoutException(java.lang.Throwable e)
Construct a RequestTimeoutException from a Throwable object.
Parameters:
e - the Throwable object

RequestTimeoutException

public RequestTimeoutException(java.lang.String s,
                               java.lang.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 java.lang.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(java.lang.Object oPartialResult)
Specify a partial execution result.
Parameters:
oPartialResult - a partial execution result

readExternal

public void readExternal(PofReader in)
                  throws java.io.IOException
Restore the contents of a user type instance by reading its state using the specified PofReader object.
Specified by:
readExternal in interface PortableObject
Overrides:
readExternal in class PortableException
Parameters:
in - the PofReader from which to read the object's state
Throws:
java.io.IOException - if an I/O error occurs

writeExternal

public void writeExternal(PofWriter out)
                   throws java.io.IOException
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
Specified by:
writeExternal in interface PortableObject
Overrides:
writeExternal in class PortableException
Parameters:
out - the PofWriter to which to write the object's state
Throws:
java.io.IOException - if an I/O error occurs

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.