|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.wasync.Options.OptionsBuilder
public static final class Options.OptionsBuilder
| Constructor Summary | |
|---|---|
Options.OptionsBuilder()
|
|
| Method Summary | |
|---|---|
Options |
build()
|
Options.OptionsBuilder |
pauseBeforeReconnectInSeconds(int reconnectInSecond)
The time in second, before the reconnection occurs. |
Options.OptionsBuilder |
reconnect(boolean reconnect)
Automatically reconnect in case the connection get closed. |
Options.OptionsBuilder |
registerTransport(Transport transport)
Register a new Transport implementation. |
Options.OptionsBuilder |
runtime(com.ning.http.client.AsyncHttpClient client)
Allow an application that want to share AsyncHttpClient or configure it before it gets used
by the library. |
Options.OptionsBuilder |
waitBeforeUnlocking(long waitBeforeUnlocking)
For streaming and long-polling, the server may not send the headers so the client never knows if the connection succeeded or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Options.OptionsBuilder()
| Method Detail |
|---|
public Options.OptionsBuilder registerTransport(Transport transport)
Transport implementation. Register a transport only if you are planning to use
a different transport than the supported one.
transport - Transport
public Options.OptionsBuilder reconnect(boolean reconnect)
reconnect - reconnect in case the connection get closed. Default is true
public Options.OptionsBuilder pauseBeforeReconnectInSeconds(int reconnectInSecond)
reconnectInSecond - time in second, before the reconnection occurs. Default is 1 second
public Options.OptionsBuilder waitBeforeUnlocking(long waitBeforeUnlocking)
waitBeforeUnlocking - the time in millisecond
public Options.OptionsBuilder runtime(com.ning.http.client.AsyncHttpClient client)
AsyncHttpClient or configure it before it gets used
by the library.
client -
public Options build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||