public interface SocketHandler extends SelectorRegistrationListener, SelectionKeyAware
SelectorThread to notify an object
of when a read or write event has occurred.| Modifier and Type | Method and Description |
|---|---|
int |
getInterestedOps()
Returns the current operations the handler is interested in
|
String |
getUuid() |
void |
initialize(ProtocolEngine engine,
Daemon daemon,
SelectableChannel sc,
SelectorThread thread)
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
|
registrationCompletedsetSelectionKeyvoid initialize(ProtocolEngine engine, Daemon daemon, SelectableChannel sc, SelectorThread thread)
ProtocolEngine and the current
Daemon.engine - ProtocolEnginedaemon - Daemonboolean processReadEvent()
boolean processWriteEvent()
int getInterestedOps()
void setThread(SelectorThread thread)
thread - String getUuid()
Copyright © 2025. All rights reserved.