public interface ClientContainer
Modifier and Type | Method and Description |
---|---|
void |
connectToServer(Object endpoint,
URI path)
Connect the supplied annotated object to its server using the supplied handshake
parameters.
|
Set<Session> |
getActiveSessions()
Return a copy of the Set of the currently active web socket sessions.
|
Set<String> |
getInstalledExtensions()
Return the set of Extensions installed in the container.
|
long |
getMaxBinaryMessageBufferSize()
Returns the maximum size of binary message that this container
will buffer.
|
long |
getMaxSessionIdleTimeout()
Return the maximum time in milliseconds that a web socket session may be idle before
the container may close it.
|
long |
getMaxTextMessageBufferSize()
Sets the maximum size of text message that this container
will buffer.
|
void |
setMaxBinaryMessageBufferSize(long max)
Sets the maximum size of binary message that this container
will buffer.
|
void |
setMaxSessionIdleTimeout(long timeout)
Sets the maximum time that a web socket session may be idle before
the container may close it.
|
void |
setMaxTextMessageBufferSize(long max)
Sets the maximum size of text message that this container
will buffer.
|
void connectToServer(Object endpoint, URI path) throws DeploymentException
WebSocketEndpoint
annotation.endpoint
- either subclass of Endpoint
or a POJO annotated with WebSocketClient
annotation.path
- the complete path to the server endpointDeploymentException
Set<Session> getActiveSessions()
long getMaxSessionIdleTimeout()
void setMaxSessionIdleTimeout(long timeout)
timeout
- the maximum time in milliseconds.long getMaxBinaryMessageBufferSize()
void setMaxBinaryMessageBufferSize(long max)
max
- the maximum size of binary message in number of byteslong getMaxTextMessageBufferSize()
void setMaxTextMessageBufferSize(long max)
max
- the maximum size of text message in number of bytesCopyright © 2013. All Rights Reserved.