public interface Connection
ReadHandler and writes data
 to Writer.| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | Connection.CloseListenerTransport close listener that receives connection close
 notifications from Tyrus. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close(CloseReason reason)Notifies tyrus that underlying transport is closing the connection. | 
| Connection.CloseListener | getCloseListener()Returns the same close listener that is passed for creating connection in
  WebSocketEngine.UpgradeInfo#createConnection(Writer, CloseListener). | 
| ReadHandler | getReadHandler()Returns a read handler. | 
| Writer | getWriter()Returns the same writer that is passed for creating connection in
  WebSocketEngine.UpgradeInfo#createConnection(Writer, CloseListener)The transport writer that actually writes websocket data
 to underlying connection. | 
ReadHandler getReadHandler()
Writer getWriter()
WebSocketEngine.UpgradeInfo#createConnection(Writer, CloseListener)
 The transport writer that actually writes websocket data
 to underlying connection.Connection.CloseListener getCloseListener()
WebSocketEngine.UpgradeInfo#createConnection(Writer, CloseListener).
 This transport close listener receives connection close notifications from Tyrus.
void close(CloseReason reason)
reason - for closing the actual connection.Copyright © 2012–2020 Oracle Corporation. All rights reserved.