|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Operation
The Operation interface is used to describe a task
that can be executed when the associated channel is ready for some
operation. Typically the SelectableChannel is used to
register with a selector with a set of given interested operations
when those operations can be performed this is executed.
Reactor| Method Summary | |
|---|---|
void |
cancel()
This is used to cancel the operation if it has timed out. |
SelectableChannel |
getChannel()
This is the SelectableChannel which is used to
determine if the operation should be executed. |
Trace |
getTrace()
This is used to acquire the trace object that is associated with the operation. |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Method Detail |
|---|
Trace getTrace()
SelectableChannel getChannel()
SelectableChannel which is used to
determine if the operation should be executed. If the channel
is ready for a given I/O event it can be run. For instance if
the operation is used to perform some form of read operation
it can be executed when ready to read data from the channel.
void cancel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||