public class WsRemoteEndpointImplServer extends WsRemoteEndpointImplBase
RemoteEndpoint
implementation
- i.e. what the server uses to send data to the client.RemoteEndpoint.Async, RemoteEndpoint.Basic
SENDRESULT_OK
Constructor and Description |
---|
WsRemoteEndpointImplServer(SocketWrapperBase<?> socketWrapper,
UpgradeInfo upgradeInfo,
WsServerContainer serverContainer) |
Modifier and Type | Method and Description |
---|---|
protected void |
doClose() |
protected void |
doWrite(SendHandler handler,
long blockingWriteTimeoutExpiry,
ByteBuffer... buffers) |
protected long |
getTimeoutExpiry() |
protected boolean |
isMasked() |
protected void |
onTimeout(boolean useDispatch) |
void |
onWritePossible(boolean useDispatch) |
protected void |
setTransformation(Transformation transformation) |
protected void |
updateStats(long payloadLength)
Hook for updating server side statistics.
|
close, flushBatch, getBatchingAllowed, getSendStream, getSendTimeout, getSendWriter, sendBytes, sendBytesByCompletion, sendBytesByFuture, sendObject, sendObjectByCompletion, sendObjectByFuture, sendPartialBytes, sendPartialString, sendPing, sendPong, sendString, sendStringByCompletion, sendStringByFuture, setBatchingAllowed, setEncoders, setSendTimeout, setSession
public WsRemoteEndpointImplServer(SocketWrapperBase<?> socketWrapper, UpgradeInfo upgradeInfo, WsServerContainer serverContainer)
protected final boolean isMasked()
isMasked
in class WsRemoteEndpointImplBase
protected void doWrite(SendHandler handler, long blockingWriteTimeoutExpiry, ByteBuffer... buffers)
doWrite
in class WsRemoteEndpointImplBase
protected void updateStats(long payloadLength)
WsRemoteEndpointImplBase
updateStats
in class WsRemoteEndpointImplBase
payloadLength
- Size of message payloadpublic void onWritePossible(boolean useDispatch)
protected void doClose()
doClose
in class WsRemoteEndpointImplBase
protected long getTimeoutExpiry()
protected void onTimeout(boolean useDispatch)
protected void setTransformation(Transformation transformation)
setTransformation
in class WsRemoteEndpointImplBase
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.