public class RapidoidServerLoop extends AbstractLoop<TCPServer> implements TCPServer, 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) |
| 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) |
TCPServer |
shutdown() |
TCPServer |
start() |
afterLoop, assertStatus, checkOnSameThread, onSameThread, run, stopLoop, waitToStart, waitToStopprotected final Protocol protocol
public RapidoidServerLoop(Protocol protocol, Class<? extends DefaultExchange<?>> exchangeClass, Class<? extends RapidoidHelper> helperClass)
protected final void beforeLoop()
beforeLoop in class AbstractLoop<TCPServer>public TCPServer start()
start in interface org.rapidoid.activity.Activity<TCPServer>start in class AbstractLoop<TCPServer>public TCPServer shutdown()
shutdown in interface org.rapidoid.activity.Activity<TCPServer>shutdown in class AbstractLoop<TCPServer>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<TCPServer>Copyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.