|
JThreadKitTM v1.1.0 ( public members only)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is implemented by classes that want to allow
users the option of throwing a TimedOutException upon
a timeout instead of using a return value.
| Method Summary | |
boolean |
isUseTimedOutExceptionSet()
Used to determine whether or not TimedOutException
will be thrown by methods when timout periods expire. |
void |
setUseTimedOutException(boolean useException)
Used to change the timeout behavior of methods on the implementing classes. |
| Method Detail |
public void setUseTimedOutException(boolean useException)
throws ShutdownException
true
methods will throw a TimedOutException when the
specified timeout period expires. If this option
is not set, methods usually signal a timeout through a
return value. Use
isUseTimedOutExceptionSet()
to check the current setting.useException - if true is passed then
TimedOutException will be thrown after timeouts,
if false is passed, timeouts do not result
in exceptions.ShutdownException - if this object has already
been shutdown.public boolean isUseTimedOutExceptionSet()
TimedOutException
will be thrown by methods when timout periods expire.
The setUseTimedOutException()
method is used to change this setting.true if timeouts will result in exceptions
being thrown, false otherwise.
|
JThreadKitTM v1.1.0 ( public members only)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||