OutgoingFrames, SuspendTokenAbstractWebSocketConnectionpublic interface LogicalConnection extends OutgoingFrames, SuspendToken
| Modifier and Type | Method | Description |
|---|---|---|
void |
disconnect() |
Terminate the connection (no close frame sent)
|
org.eclipse.jetty.io.ByteBufferPool |
getBufferPool() |
Get the ByteBufferPool in use by the connection
|
java.util.concurrent.Executor |
getExecutor() |
Get the Executor used by this connection.
|
java.lang.String |
getId() |
Get Unique ID for the Connection
|
long |
getIdleTimeout() |
Get the read/write idle timeout.
|
IOState |
getIOState() |
Get the IOState of the connection.
|
java.net.InetSocketAddress |
getLocalAddress() |
Get the local
InetSocketAddress in use for this connection. |
long |
getMaxIdleTimeout() |
Set the maximum number of milliseconds of idleness before the connection is closed/disconnected, (ie no frames are either sent or received)
|
WebSocketPolicy |
getPolicy() |
The policy that the connection is running under.
|
java.net.InetSocketAddress |
getRemoteAddress() |
Get the remote Address in use for this connection.
|
boolean |
isOpen() |
Test if logical connection is still open
|
boolean |
isReading() |
Tests if the connection is actively reading.
|
void |
onLocalClose(CloseInfo close) |
Called to indicate a close frame was successfully sent to the remote.
|
void |
setMaxIdleTimeout(long ms) |
Set the maximum number of milliseconds of idleness before the connection is closed/disconnected, (ie no frames are either sent or received)
|
void |
setNextIncomingFrames(IncomingFrames incoming) |
Set where the connection should send the incoming frames to.
|
void |
setSession(WebSocketSession session) |
Associate the Active Session with the connection.
|
SuspendToken |
suspend() |
Suspend a the incoming read events on the connection.
|
outgoingFrameresumevoid onLocalClose(CloseInfo close)
close - the close detailsvoid disconnect()
org.eclipse.jetty.io.ByteBufferPool getBufferPool()
java.util.concurrent.Executor getExecutor()
long getIdleTimeout()
IOState getIOState()
java.net.InetSocketAddress getLocalAddress()
InetSocketAddress in use for this connection.
Note: Non-physical connections, like during the Mux extensions, or during unit testing can result in a InetSocketAddress on port 0 and/or on localhost.
long getMaxIdleTimeout()
WebSocketPolicy getPolicy()
java.net.InetSocketAddress getRemoteAddress()
Note: Non-physical connections, like during the Mux extensions, or during unit testing can result in a InetSocketAddress on port 0 and/or on localhost.
boolean isOpen()
boolean isReading()
void setMaxIdleTimeout(long ms)
This idle timeout cannot be garunteed to take immediate effect for any active read/write actions. New read/write actions will have this new idle timeout.
ms - the number of milliseconds of idle timeoutvoid setNextIncomingFrames(IncomingFrames incoming)
Often this is from the Parser to the start of the extension stack, and eventually on to the session.
incoming - the incoming frames handlervoid setSession(WebSocketSession session)
session - the session for this connectionSuspendToken suspend()
java.lang.String getId()
Copyright © 1995–2018 Webtide. All rights reserved.