|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transport<T>
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 | |
|---|---|
boolean |
canHandle(Request request)
Return true if the transport can handle the request. |
void |
close()
Close the underlying transport} |
Transport |
future(Future f)
The current Socket's Future |
Request.TRANSPORT |
name()
The transport name |
void |
onThrowable(Throwable t)
Called when an unexpected exception ocurred. |
Transport |
registerF(FunctionWrapper function)
Register a new FunctionResolver |
| Method Detail |
|---|
Request.TRANSPORT name()
Transport future(Future f)
Socket's Future
f -
Transport registerF(FunctionWrapper function)
FunctionResolver
function - FunctionResolver
void onThrowable(Throwable t)
t - a Throwablevoid close()
boolean canHandle(Request request)
request - Request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||