Package org.cometd.annotation.server
Interface RemoteCall.Caller
-
- Enclosing class:
- RemoteCall
public static interface RemoteCall.CallerObjects implementing this interface represent remote clients that performed remote calls.
Server-side applications may return a result or a failure via, respectively,
result(Object)andfailure(Object).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanfailure(java.lang.Object failure)Returns the givenfailureto the remote caller.ServerSessiongetServerSession()booleanresult(java.lang.Object result)Returns the givenresultto the remote caller.
-
-
-
Method Detail
-
getServerSession
ServerSession getServerSession()
- Returns:
- the
ServerSessionassociated with this remote caller
-
result
boolean result(java.lang.Object result)
Returns the given
resultto the remote caller.- Parameters:
result- the result to send to the remote caller- Returns:
- true if the result was sent to the remote client, false otherwise
-
failure
boolean failure(java.lang.Object failure)
Returns the given
failureto the remote caller.- Parameters:
failure- the failure to send to the remote caller- Returns:
- true if the failure was sent to the remote client, false otherwise
-
-