Class ClientHead
java.lang.Object
com.corundumstudio.socketio.handler.ClientHead
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientHead(UUID sessionId, AckManager ackManager, DisconnectableHub disconnectable, StoreFactory storeFactory, HandshakeData handshakeData, ClientsBox clientsBox, Transport transport, CancelableScheduler scheduler, Configuration configuration, Map<String, List<String>> params) -
Method Summary
Modifier and TypeMethodDescriptionaddNamespaceClient(Namespace namespace) voidbindChannel(io.netty.channel.Channel channel, Transport transport) voidvoidvoidgetChildClient(Namespace namespace) getPacketsQueue(Transport transport) getStore()booleanbooleanbooleanisTransportChannel(io.netty.channel.Channel channel, Transport transport) booleanReturns true if and only if the I/O thread will perform the requested write operation immediately.voidvoidreleasePollingChannel(io.netty.channel.Channel channel) voidremoveNamespaceClient(NamespaceClient client) voidvoidio.netty.channel.ChannelFutureio.netty.channel.ChannelFuturevoidsetLastBinaryPacket(Packet lastBinaryPacket) voidupgradeCurrentTransport(Transport currentTransport)
-
Field Details
-
CLIENT
-
-
Constructor Details
-
ClientHead
public ClientHead(UUID sessionId, AckManager ackManager, DisconnectableHub disconnectable, StoreFactory storeFactory, HandshakeData handshakeData, ClientsBox clientsBox, Transport transport, CancelableScheduler scheduler, Configuration configuration, Map<String, List<String>> params)
-
-
Method Details
-
bindChannel
-
releasePollingChannel
public void releasePollingChannel(io.netty.channel.Channel channel) -
getOrigin
-
send
-
cancelPing
public void cancelPing() -
cancelPingTimeout
public void cancelPingTimeout() -
schedulePing
public void schedulePing() -
schedulePingTimeout
public void schedulePingTimeout() -
send
-
removeNamespaceClient
-
getChildClient
-
addNamespaceClient
-
getNamespaces
-
isConnected
public boolean isConnected() -
onChannelDisconnect
public void onChannelDisconnect() -
getHandshakeData
-
getAckManager
-
getSessionId
-
getRemoteAddress
-
disconnect
public void disconnect() -
isChannelOpen
public boolean isChannelOpen() -
getStore
-
isTransportChannel
-
upgradeCurrentTransport
-
getCurrentTransport
-
getPacketsQueue
-
setLastBinaryPacket
-
getLastBinaryPacket
-
getEngineIOVersion
-
isWritable
public boolean isWritable()Returns true if and only if the I/O thread will perform the requested write operation immediately. Any write requests made when this method returns false are queued until the I/O thread is ready to process the queued write requests.- Returns:
-