|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.wasync.impl.DefaultOptions
public class DefaultOptions
Default implementation of the Options
| Field Summary | |
|---|---|
protected OptionsBuilder |
b
|
| Constructor Summary | |
|---|---|
DefaultOptions(OptionsBuilder b)
|
|
| Method Summary | |
|---|---|
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 Options.reconnectInSeconds() |
int |
reconnectInSeconds()
The delay, in second, 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final OptionsBuilder b
| Constructor Detail |
|---|
public DefaultOptions(OptionsBuilder b)
| Method Detail |
|---|
public Transport transport()
Transport
transport in interface OptionsTransportpublic boolean reconnect()
reconnect in interface Optionspublic int reconnectInSeconds()
reconnectInSeconds in interface Optionspublic int reconnectAttempts()
OptionsOptions.reconnectInSeconds()
reconnectAttempts in interface Optionspublic 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.
waitBeforeUnlocking in interface Optionspublic com.ning.http.client.AsyncHttpClient runtime()
AsyncHttpClient used to communicate with server.
runtime in interface OptionsAsyncHttpClient used to communicate with server.public void runtime(com.ning.http.client.AsyncHttpClient client)
OptionsAsyncHttpClient.
runtime in interface Optionsclient - the AsyncHttpClientpublic boolean runtimeShared()
AsyncHttpClient is shared between Socket. Default is false. You need to invoke Options.runtime(com.ning.http.client.AsyncHttpClient) to make
it shared.
runtimeShared in interface OptionsAsyncHttpClientpublic int requestTimeoutInSeconds()
requestTimeoutInSeconds in interface Optionspublic boolean binary()
binary in interface Options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||