|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transport
Define a supported Transport. Default are websocket, streaming, server-side events and long-polling.
Use this interface only if you want to define another transport. New transport can be registered using the Options
class.
| Method Summary | |
|---|---|
void |
close()
Close the underlying transport} |
void |
connectedFuture(Future f)
Set the Future, which will unlock the Socket.fire(java.lang.Object) method once the connection has been fully established. |
void |
error(Throwable e)
Set a Throwable |
boolean |
errorHandled()
Error handled by a Function |
void |
future(com.ning.http.client.ListenableFuture f)
Set the ListenableFuture, which can be used to clone the connection. |
Request.TRANSPORT |
name()
The transport name |
void |
onThrowable(Throwable t)
Called when an unexpected exception ocurred. |
Transport |
registerF(FunctionWrapper function)
Register a new FunctionResolver |
Socket.STATUS |
status()
Return the current Socket.STATUS |
| Method Detail |
|---|
Request.TRANSPORT name()
Transport registerF(FunctionWrapper function)
FunctionResolver
function - FunctionResolver
void onThrowable(Throwable t)
t - a Throwablevoid close()
Socket.STATUS status()
Socket.STATUS
boolean errorHandled()
Function
void error(Throwable e)
Throwable
e - Throwablevoid future(com.ning.http.client.ListenableFuture f)
ListenableFuture, which can be used to clone the connection.
f - ListenableFuturevoid connectedFuture(Future f)
Future, which will unlock the Socket.fire(java.lang.Object) method once the connection has been fully established.
f - Future
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||