Class WebSocketHandler.WebsocketTuple
- java.lang.Object
-
- com.microsoft.azure.proton.transport.ws.WebSocketHandler.WebsocketTuple
-
- Enclosing interface:
- WebSocketHandler
public static class WebSocketHandler.WebsocketTuple extends java.lang.ObjectRepresents the web socket message and its type.
-
-
Constructor Summary
Constructors Constructor Description WebsocketTuple(long length, WebSocketHandler.WebSocketMessageType type)Creates an instance with the given length and type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLength()Gets the length of the message.WebSocketHandler.WebSocketMessageTypegetType()Gets the type of the message.voidsetLength(long length)Sets the length of the message.voidsetType(WebSocketHandler.WebSocketMessageType type)Sets the message type.
-
-
-
Constructor Detail
-
WebsocketTuple
public WebsocketTuple(long length, WebSocketHandler.WebSocketMessageType type)Creates an instance with the given length and type.- Parameters:
length- Length of the segment.type- Type of the socket message.
-
-
Method Detail
-
setLength
public void setLength(long length)
Sets the length of the message.- Parameters:
length- The length of the message.
-
setType
public void setType(WebSocketHandler.WebSocketMessageType type)
Sets the message type.- Parameters:
type- The message type.
-
getLength
public long getLength()
Gets the length of the message.- Returns:
- The length of the message.
-
getType
public WebSocketHandler.WebSocketMessageType getType()
Gets the type of the message.- Returns:
- The type of the message.
-
-