@Authors(value="Nikolche Mihajlovski") @Since(value="2.0.0") public class RapidoidWorker extends AbstractEventLoop<RapidoidWorker>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
EXTRA_SAFE |
static int |
MAX_IO_WORKERS |
approxTime, selectorownerThread, status| Constructor and Description |
|---|
RapidoidWorker(String name,
Protocol protocol,
RapidoidHelper helper,
int bufSizeKB,
boolean noDelay,
boolean syncBufs,
SSLContext sslContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SocketChannel socketChannel) |
void |
close(RapidoidConnection conn) |
protected void |
doProcessing() |
protected void |
failedOP(SelectionKey key,
Throwable e) |
long |
getMessagesProcessed() |
RapidoidConnection |
newConnection() |
void |
process(RapidoidConnection conn) |
protected void |
readOP(SelectionKey key) |
RapidoidWorker |
shutdown() |
SSLContext |
sslContext() |
protected void |
stopLoop() |
void |
wantToWrite(RapidoidConnection conn) |
protected void |
writeOP(SelectionKey key) |
acceptOP, connectOP, insideLoopafterLoop, assertStatus, beforeLoop, checkOnSameThread, onSameThread, run, start, status, waitForStatus, waitForStatusOtherThan, waitToStart, waitToStoppublic static int MAX_IO_WORKERS
public static boolean EXTRA_SAFE
public RapidoidWorker(String name, Protocol protocol, RapidoidHelper helper, int bufSizeKB, boolean noDelay, boolean syncBufs, SSLContext sslContext)
public void accept(SocketChannel socketChannel)
protected 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 RapidoidConnection newConnection()
public long getMessagesProcessed()
protected void stopLoop()
stopLoop in class AbstractLoop<RapidoidWorker>public RapidoidWorker shutdown()
shutdown in interface org.rapidoid.activity.Activity<RapidoidWorker>shutdown in class AbstractLoop<RapidoidWorker>public SSLContext sslContext()
Copyright © 2014–2017 Nikolche Mihajlovski and contributors. All rights reserved.