public class PollingSockJsSession extends AbstractHttpSockJsSession
DISCONNECTED_CLIENT_LOG_CATEGORY, disconnectedClientLogger, logger| Constructor and Description |
|---|
PollingSockJsSession(String sessionId,
SockJsServiceConfig config,
WebSocketHandler wsHandler,
Map<String,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
flushCache()
Called when the connection is active and ready to write to the response.
|
protected boolean |
isStreaming()
Whether this HTTP transport streams message frames vs closing the response
after each frame written (long polling).
|
disconnect, getAcceptedProtocol, getBinaryMessageSizeLimit, getExtensions, getHandshakeHeaders, getLocalAddress, getMessageCache, getPrincipal, getRemoteAddress, getTextMessageSizeLimit, getUri, handleInitialRequest, handleSuccessiveRequest, isActive, resetRequest, sendMessageInternal, setAcceptedProtocol, setBinaryMessageSizeLimit, setTextMessageSizeLimit, writeFrameInternal, writePreludecancelHeartbeat, close, close, delegateConnectionClosed, delegateConnectionEstablished, delegateError, delegateMessages, disableHeartbeat, getAttributes, getId, getMessageCodec, getSockJsServiceConfig, getTimeSinceLastActive, isClosed, isNew, isOpen, scheduleHeartbeat, sendHeartbeat, sendMessage, toString, tryCloseWithSockJsTransportError, updateLastActiveTime, writeFramepublic PollingSockJsSession(String sessionId, SockJsServiceConfig config, WebSocketHandler wsHandler, Map<String,Object> attributes)
protected boolean isStreaming()
AbstractHttpSockJsSessionisStreaming in class AbstractHttpSockJsSessionprotected void flushCache()
throws SockJsTransportFailureException
AbstractHttpSockJsSessionflushCache in class AbstractHttpSockJsSessionSockJsTransportFailureException