|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception net.sf.asterisk.manager.TimeoutException net.sf.asterisk.manager.EventTimeoutException
public class EventTimeoutException
An EventTimeoutException is thrown if a ManagerResponse or some
ResponseEvents are not completely received within the expected time period.
This exception allows you to retrieve the partial result, that is the events
that have been successfully received before the timeout occured.
Constructor Summary | |
---|---|
EventTimeoutException(java.lang.String message,
ResponseEvents partialResult)
Creates a new EventTimeoutException with the given message and partial result. |
Method Summary | |
---|---|
ResponseEvents |
getPartialResult()
Returns the partial result that has been received before the timeout occured. Note: Using the partial result in your application should be avoided wherever possible. |
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 |
---|
public EventTimeoutException(java.lang.String message, ResponseEvents partialResult)
message
- message with details about the timeout.partialResult
- the ResponseEvents object filled with the parts that
have been received before the timeout occured.Method Detail |
---|
public ResponseEvents getPartialResult()
null
when no response has been received.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |