public class RapidoidWorker extends AbstractEventLoop<RapidoidWorker>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
EXTRA_SAFE |
selectorownerThread, status| Constructor and Description |
|---|
RapidoidWorker(String name,
org.rapidoidx.buffer.BufGroup bufs,
Protocol protocol,
RapidoidHelper helper,
int bufSizeKB,
boolean noNelay) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SocketChannel socketChannel) |
void |
close(RapidoidConnection conn) |
void |
connect(ConnectionTarget target) |
protected void |
connectOP(SelectionKey key) |
protected void |
doProcessing() |
protected void |
failedOP(SelectionKey key,
Throwable e) |
long |
getMessagesProcessed() |
protected long |
getSelectorTimeout() |
RapidoidConnection |
newConnection() |
void |
process(RapidoidConnection conn) |
protected void |
readOP(SelectionKey key) |
void |
restart(RapidoidConnection conn) |
void |
wantToWrite(RapidoidConnection conn) |
protected void |
writeOP(SelectionKey key) |
acceptOP, insideLoopafterLoop, assertStatus, beforeLoop, checkOnSameThread, onSameThread, run, shutdown, start, stopLoop, waitToStart, waitToStoppublic RapidoidWorker(String name, org.rapidoidx.buffer.BufGroup bufs, Protocol protocol, RapidoidHelper helper, int bufSizeKB, boolean noNelay)
public void accept(SocketChannel socketChannel) throws IOException
IOExceptionpublic void connect(ConnectionTarget target) throws IOException
IOExceptionprotected void connectOP(SelectionKey key) throws IOException
connectOP in class AbstractEventLoop<RapidoidWorker>IOExceptionprotected void readOP(SelectionKey key) throws IOException
readOP in class AbstractEventLoop<RapidoidWorker>IOExceptionpublic void process(RapidoidConnection conn)
public void close(RapidoidConnection conn)
protected void writeOP(SelectionKey key) throws IOException
writeOP in class AbstractEventLoop<RapidoidWorker>IOExceptionpublic void wantToWrite(RapidoidConnection conn)
protected void doProcessing()
doProcessing in class AbstractEventLoop<RapidoidWorker>protected void failedOP(SelectionKey key, Throwable e)
failedOP in class AbstractEventLoop<RapidoidWorker>public void restart(RapidoidConnection conn)
public RapidoidConnection newConnection()
public long getMessagesProcessed()
protected long getSelectorTimeout()
getSelectorTimeout in class AbstractEventLoop<RapidoidWorker>Copyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.