public interface Options
Modifier and Type | Method and Description |
---|---|
boolean |
binary()
Return true if binary data, instead of String/Text message, are sent back by the server.
|
boolean |
reconnect()
Reconnect after a network failure or when the server close the connection.
|
int |
reconnectAttempts()
Maximum reconnection attempts that will run in the interval defined by
#reconnectInSeconds |
int |
reconnectTimeoutInMilliseconds()
The delay, in milliseconds, before reconnecting.
|
int |
requestTimeoutInSeconds()
The time, in seconds to wait before closing the connection.
|
com.ning.http.client.AsyncHttpClient |
runtime()
The
AsyncHttpClient used to communicate with server. |
void |
runtime(com.ning.http.client.AsyncHttpClient client)
Set the
AsyncHttpClient . |
boolean |
runtimeShared()
Return true is the
AsyncHttpClient is shared between Socket . |
Transport |
transport()
The used
Transport |
long |
waitBeforeUnlocking()
When using long-polling and the
Request , the delay before considering the long-polling connection has been fully processed by the server. |
boolean reconnect()
int reconnectTimeoutInMilliseconds()
int reconnectAttempts()
#reconnectInSeconds
long waitBeforeUnlocking()
Request
, the delay before considering the long-polling connection has been fully processed by the server. If you use
the AtmosphereClient
, the server will send some handshake so this value is not needed.com.ning.http.client.AsyncHttpClient runtime()
AsyncHttpClient
used to communicate with server.AsyncHttpClient
used to communicate with server.void runtime(com.ning.http.client.AsyncHttpClient client)
AsyncHttpClient
.client
- the AsyncHttpClient
boolean runtimeShared()
AsyncHttpClient
is shared between Socket
. Default is false. You need to invoke runtime(com.ning.http.client.AsyncHttpClient)
to make
it shared.AsyncHttpClient
int requestTimeoutInSeconds()
boolean binary()
Copyright © 2015. All Rights Reserved.