@Authors(value="Nikolche Mihajlovski") @Since(value="2.0.0") public class RapidoidServerLoop extends AbstractLoop<Server> implements Server, TCPServerInfo
| Modifier and Type | Field and Description |
|---|---|
protected Protocol |
protocol |
ownerThread, status| Constructor and Description |
|---|
RapidoidServerLoop(Protocol protocol,
Class<? extends DefaultExchange<?>> exchangeClass,
Class<? extends RapidoidHelper> helperClass,
String address,
int port,
int workers,
int bufSizeKB,
boolean noDelay,
boolean syncBufs,
boolean blockingAccept,
SSLContext sslContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeLoop() |
Protocol |
getProtocol() |
TCPServerInfo |
info() |
protected void |
insideLoop() |
long |
messagesProcessed() |
RapidoidConnection |
newConnection() |
void |
process(RapidoidConnection conn) |
String |
process(String input) |
Server |
shutdown() |
Server |
start() |
afterLoop, assertStatus, checkOnSameThread, onSameThread, run, status, stopLoop, waitForStatus, waitForStatusOtherThan, waitToStart, waitToStopprotected final Protocol protocol
public RapidoidServerLoop(Protocol protocol, Class<? extends DefaultExchange<?>> exchangeClass, Class<? extends RapidoidHelper> helperClass, String address, int port, int workers, int bufSizeKB, boolean noDelay, boolean syncBufs, boolean blockingAccept, SSLContext sslContext)
protected final void beforeLoop()
beforeLoop in class AbstractLoop<Server>public Server start()
start in interface org.rapidoid.activity.Activity<Server>start in class AbstractLoop<Server>public Server shutdown()
shutdown in interface org.rapidoid.activity.Activity<Server>shutdown in class AbstractLoop<Server>public RapidoidConnection newConnection()
public void process(RapidoidConnection conn)
public Protocol getProtocol()
public TCPServerInfo info()
public long messagesProcessed()
messagesProcessed in interface TCPServerInfoprotected void insideLoop()
insideLoop in class AbstractLoop<Server>Copyright © 2014–2017 Nikolche Mihajlovski and contributors. All rights reserved.