|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SocketHandler
An interface used by the SelectorThread to notify an object
of when a read or write event has occurred.
| Method Summary | |
|---|---|
int |
getInterestedOps()
Returns the current operations the handler is interested in |
void |
initialize(ProtocolEngine engine,
Daemon daemon)
Initialize this socket with a ProtocolEngine and the current
Daemon. |
boolean |
processReadEvent()
The selector is ready to be read. |
boolean |
processWriteEvent()
The selector is ready to be written to. |
void |
setThread(SelectorThread thread)
Sets the selector thread this handler runs upon |
| Methods inherited from interface com.maverick.nio.SelectorRegistrationListener |
|---|
registrationCompleted |
| Method Detail |
|---|
void initialize(ProtocolEngine engine,
Daemon daemon)
ProtocolEngine and the current
Daemon.
engine - ProtocolEnginedaemon - Daemonboolean processReadEvent()
boolean processWriteEvent()
int getInterestedOps()
void setThread(SelectorThread thread)
thread -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||