Class MethodCall

    • Field Detail

      • replyWaitTimeout

        private static long replyWaitTimeout
    • Constructor Detail

      • MethodCall

        MethodCall()
      • MethodCall

        public MethodCall​(java.lang.String _dest,
                          java.lang.String _path,
                          java.lang.String _iface,
                          java.lang.String _member,
                          byte _flags,
                          java.lang.String _sig,
                          java.lang.Object... _args)
                   throws DBusException
        Throws:
        DBusException
      • MethodCall

        public MethodCall​(java.lang.String _source,
                          java.lang.String _dest,
                          java.lang.String _path,
                          java.lang.String _iface,
                          java.lang.String _member,
                          byte _flags,
                          java.lang.String _sig,
                          java.lang.Object... _args)
                   throws DBusException
        Throws:
        DBusException
    • Method Detail

      • setDefaultTimeout

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

        public boolean hasReply()
      • getReply

        public Message getReply​(long _timeout)
        Block (if neccessary) for a reply.
        Parameters:
        _timeout - The length of time to block before timing out (ms).
        Returns:
        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()
        Returns:
        The reply to this MethodCall, or null if a timeout happens.
      • setReply

        public void setReply​(Message _reply)