Top Fields Constructors Methods
org.freedesktop.dbus.messages

public Class MethodCall

extends MethodBase
Class Inheritance
Imports
org.freedesktop.dbus.exceptions.DBusException, .MessageFormatException, org.freedesktop.dbus.messages.constants.ArgumentType, .HeaderField, .MessageType, java.time.Duration, java.util.ArrayList, .List

Field Summary

Modifier and TypeField and Description
pack-priv Message
private static long

Constructor Summary

AccessConstructor and Description
pack-priv
protected
MethodCall(byte _endianess, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args)

protected
MethodCall(byte _endianess, String _source, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args)

Method Summary

Modifier and TypeMethod and Description
public synchronized Message

Returns:

The reply to this MethodCall, or null if a timeout happens.
getReply
(long
The length of time to block before timing out (ms).
_timeout
)

Block (if neccessary) for a reply.

public synchronized Message

Returns:

The reply to this MethodCall, or null if a timeout happens.
getReply
()

Block (if neccessary) for a reply.

public synchronized boolean
public static void
setDefaultTimeout(long
New timeout in ms.
_timeout
)

Set the default timeout for method calls.

public synchronized void
setReply(Message _reply)

Inherited from org.freedesktop.dbus.messages.MethodBase:
appendFileDescriptors

Field Detail

replyback to summary
pack-priv Message reply
replyWaitTimeoutback to summary
private static long replyWaitTimeout

Constructor Detail

MethodCallback to summary
pack-priv MethodCall()
MethodCallback to summary
protected MethodCall(byte _endianess, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) throws DBusException
MethodCallback to summary
protected MethodCall(byte _endianess, String _source, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) throws DBusException

Method Detail

getReplyback to summary
public synchronized Message getReply(long _timeout)

Block (if neccessary) for a reply.

Parameters
_timeout:long

The length of time to block before timing out (ms).

Returns:Message

The reply to this MethodCall, or null if a timeout happens.

getReplyback to summary
public synchronized Message getReply()

Block (if neccessary) for a reply. Default timeout is 20s, or can be configured with setDefaultTimeout()

Returns:Message

The reply to this MethodCall, or null if a timeout happens.

hasReplyback to summary
public synchronized boolean hasReply()
setDefaultTimeoutback to summary
public static void setDefaultTimeout(long _timeout)

Set the default timeout for method calls. Default is 20s.

Parameters
_timeout:long

New timeout in ms.

setReplyback to summary
public synchronized void setReply(Message _reply)