|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the methods available in a handler control object for controlling the operation of an event handler.
For a handler class to obtain a reference to its handler control object,
a constructor with a single SefHandlerControl
argument must be implemented
(note that this interface is never implemeted by any non-Strategi class).
For example:
public MySefHandler(SefHandlerControl ctlobj) { ... ctlobj.setOption("EventWaitTime","60"); // Enable a *TIMEOUT event every 60 seconds while idle ... }
Once a reference to the control object has been obtained, it may be stored and used as needed during the life of the event handler.
Method Summary | |
boolean |
setOption(java.lang.String kwd,
java.lang.String val)
Sets a particular event handler option. |
Method Detail |
public boolean setOption(java.lang.String kwd, java.lang.String val)
Supported option keywords:
SndTimeout
- Send timeout for the handler output stream, in seconds.
If set to -1, timeout will never occur.
RcvTimeout
- Receive timeout for the handler input stream, in seconds.
If set to -1, timeout will never occur.
Timeout
- Set the SndTimeout and RcvTimeout in seconds.
If set to -1, timeouts will never occur.
EventWaitTime
- Set the time to wait for an event, in seconds. If this time is exceeded
between events, a system generated *TIMEOUT event will occur. This enables the event handler to perform
time oriented activities when idle.
If set to -1, *TIMEOUT opcodes will not be generated.
kwd
- keyword identifying the option to set.val
- value to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |