public interface Transport
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.Modifier and Type | Method and Description |
---|---|
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(Future f)
Set the
Future , 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 |
Request.TRANSPORT name()
Transport registerF(FunctionWrapper function)
FunctionResolver
function
- FunctionResolver
void onThrowable(Throwable t)
t
- a Throwable
void close()
Socket.STATUS status()
Socket.STATUS
boolean errorHandled()
Function
void future(Future f)
Future
, which can be used to clone the connection.f
- Future
void connectedFuture(Future f)
Future
, which will unlock the Socket.fire(java.lang.Object)
method once the connection has been fully established.f
- Future
Copyright © 2015. All Rights Reserved.