|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReinvokeAware
The common interface, for objects, which could have influence on a
ProtocolChain
reinvokation.
Method Summary | |
---|---|
boolean |
isContinuousExecution()
Return true if the current ExecutorService can
re-execute its ProtocolFilter after a successful execution. |
void |
setContinuousExecution(boolean continousExecution)
Set to true if the current ExecutorService can
re-execute its ProtocolFilter(s) after a successful execution. |
Method Detail |
---|
void setContinuousExecution(boolean continousExecution)
ExecutorService
can
re-execute its ProtocolFilter(s) after a successful execution. Enabling
this property is useful for protocol that needs to support pipelined
message requests as the ProtocolFilter are automatically re-executed,
avoiding the overhead of releasing the current Thread, registering
back the SelectionKey to the SelectorHandler and waiting for a new
NIO event.
Some protocols (like http) can get the http headers in one
SocketChannel.read, parse the message and then get the next http message
on the second SocketChannel.read(). Not having to release the Thread
and re-execute the ProtocolFilter greatly improve performance.
continousExecution
- true to enable continuous execution.
(default is false).boolean isContinuousExecution()
ExecutorService
can
re-execute its ProtocolFilter after a successful execution.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |