public class ActorWSClientSession<T extends ActorWSClientSession>
extends org.nustaq.kontraktor.Actor<T>
implements org.nustaq.webserver.ClientSession
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.channel.ChannelHandlerContext |
context |
static int |
NUM_MISSING_PONGS_FOR_TIMEOUT |
protected ActorWSServer |
server |
protected int |
sessionId |
| Constructor and Description |
|---|
ActorWSClientSession() |
| Modifier and Type | Method and Description |
|---|---|
void |
$init(ActorWSServer server,
int sessionId) |
void |
$onBinaryMessage(byte[] buffer) |
void |
$onClose() |
void |
$onOpen(io.netty.channel.ChannelHandlerContext ctx) |
void |
$onTextMessage(String text) |
void |
$pong() |
void |
$runPing(long millis)
starts pinging client periodically
|
protected void |
sendBinaryMessage(byte[] b) |
protected void |
sendTextMessage(String s) |
__addRemoteConnection, __addStopHandler, __enqueueCall, __getCachedMethod, __removeRemoteConnection, __stop, $close, $stop, $sync, async, checkThread, Cont, delayed, Fin, getActor, getActorRef, getCallbackSize, getFactory, getMailboxSize, getScheduler, inThread, isCallbackQPressured, isMailboxPressured, isProxy, isRemote, isStopped, self, stopSafeClose, yield, yieldListpublic static int NUM_MISSING_PONGS_FOR_TIMEOUT
protected io.netty.channel.ChannelHandlerContext context
protected ActorWSServer server
protected int sessionId
public void $init(ActorWSServer server, int sessionId)
public void $runPing(long millis)
millis - protected void sendBinaryMessage(byte[] b)
protected void sendTextMessage(String s)
public void $onBinaryMessage(byte[] buffer)
public void $onOpen(io.netty.channel.ChannelHandlerContext ctx)
public void $onClose()
public void $onTextMessage(String text)
public void $pong()
Copyright © 2014. All rights reserved.