class OioWorker extends AbstractOioWorker<OioSocketChannel>
| Modifier and Type | Field and Description |
|---|---|
private static java.util.regex.Pattern |
SOCKET_CLOSED_MESSAGE |
channel, thread| Constructor and Description |
|---|
OioWorker(OioSocketChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
process()
Process the incoming messages and also is responsible for call
Channels.fireMessageReceived(Channel, Object) once a message was processed without
errors. |
void |
run() |
(package private) static void |
write(OioSocketChannel channel,
ChannelFuture future,
java.lang.Object message) |
close, executeInIoThread, isIoThread, setInterestOpsprivate static final java.util.regex.Pattern SOCKET_CLOSED_MESSAGE
OioWorker(OioSocketChannel channel)
public void run()
run in interface java.lang.Runnablerun in class AbstractOioWorker<OioSocketChannel>boolean process()
throws java.io.IOException
AbstractOioWorkerChannels.fireMessageReceived(Channel, Object) once a message was processed without
errors.process in class AbstractOioWorker<OioSocketChannel>true as long as this worker should continue to try
processing incoming messagesjava.io.IOExceptionstatic void write(OioSocketChannel channel, ChannelFuture future, java.lang.Object message)