Interface RemoteCall.Caller

Enclosing class:
RemoteCall

public static interface RemoteCall.Caller

Objects implementing this interface represent remote clients that performed remote calls.

Server-side applications may return a result or a failure via, respectively, result(Object) and failure(Object).

  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    failure(Object failure)
    Returns the given failure to the remote caller.
     
    boolean
    result(Object result)
    Returns the given result to the remote caller.
  • Method Details Link icon

    • getServerSession Link icon

      ServerSession getServerSession()
      Returns:
      the ServerSession associated with this remote caller
    • result Link icon

      boolean result(Object result)

      Returns the given result to 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 Link icon

      boolean failure(Object failure)

      Returns the given failure to 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