Interface RequestSink


public interface RequestSink
Author:
joakim
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    abort(String callID)
    Signal the abortion of a call.
    <T extends RequestContext>
    T
    signal(Message msg, T signalContext, long maxWait)
    Send an asyncronous call.
  • Method Details

    • signal

      <T extends RequestContext> T signal(Message msg, T signalContext, long maxWait)
      Send an asyncronous call. The method should return immediately. Any replies for this call back to this entity is forwarded to the given signal context, until the given time is elapsed, or the request is closed.
      Type Parameters:
      T - context type
      Parameters:
      msg - message to send
      signalContext - a signal context to forward replies to, or null if replies are ignored
      maxWait - the maximum lifetime of this request, before closing
      Returns:
      the signal context
    • abort

      void abort(String callID)
      Signal the abortion of a call. The sink delivers no guarantees that the call can be aborted.
      Parameters:
      callID - the callID of the call to abort