Klasse MethodCall


public class MethodCall extends MethodBase
  • Konstruktordetails

  • Methodendetails

    • setDefaultTimeout

      public static void setDefaultTimeout(long _timeout)
      Set the default timeout for method calls. Default is 20s.
      Parameter:
      _timeout - New timeout in ms.
    • hasReply

      public boolean hasReply()
    • getReply

      public Message getReply(long _timeout)
      Block (if neccessary) for a reply.
      Parameter:
      _timeout - The length of time to block before timing out (ms).
      Gibt zurück:
      The reply to this MethodCall, or null if a timeout happens.
    • getReply

      public Message getReply()
      Block (if neccessary) for a reply. Default timeout is 20s, or can be configured with setDefaultTimeout()
      Gibt zurück:
      The reply to this MethodCall, or null if a timeout happens.
    • setReply

      public void setReply(Message _reply)