|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.tyrus.client.ClientManager
public class ClientManager
ClientManager implementation.
| Method Summary | |
|---|---|
void |
connectToServer(Endpoint endpoint,
ClientEndpointConfiguration configuration)
Connect the supplied endpoint to its server using the supplied handshake parameters |
static ClientManager |
createClient()
|
static ClientManager |
createClient(String engineProviderClassname)
Create new ClientManager instance. |
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 seconds 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ClientManager createClient()
public static ClientManager createClient(String engineProviderClassname)
public void connectToServer(Endpoint endpoint,
ClientEndpointConfiguration configuration)
ClientContainer
connectToServer in interface ClientContainerendpoint - the endpoint which will be connected to the serverconfiguration - the client configuration used to connect the clientpublic Set<Session> getActiveSessions()
ClientContainer
getActiveSessions in interface ClientContainerpublic long getMaxSessionIdleTimeout()
ClientContainer
getMaxSessionIdleTimeout in interface ClientContainerpublic void setMaxSessionIdleTimeout(long timeout)
ClientContainer
setMaxSessionIdleTimeout in interface ClientContainerpublic long getMaxBinaryMessageBufferSize()
ClientContainer
getMaxBinaryMessageBufferSize in interface ClientContainerpublic void setMaxBinaryMessageBufferSize(long max)
ClientContainer
setMaxBinaryMessageBufferSize in interface ClientContainerpublic long getMaxTextMessageBufferSize()
ClientContainer
getMaxTextMessageBufferSize in interface ClientContainerpublic void setMaxTextMessageBufferSize(long max)
ClientContainer
setMaxTextMessageBufferSize in interface ClientContainerpublic Set<String> getInstalledExtensions()
ClientContainer
getInstalledExtensions in interface ClientContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||