Class MethodCall
java.lang.Object
org.freedesktop.dbus.messages.Message
org.freedesktop.dbus.messages.MethodBase
org.freedesktop.dbus.messages.MethodCall
-
Field Summary
Fields inherited from class Message
logger, MAXIMUM_ARRAY_LENGTH, MAXIMUM_MESSAGE_LENGTH, MAXIMUM_NUM_UNIX_FDS, PROTOCOL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMethodCall(byte _endianess, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) protectedMethodCall(byte _endianess, String _source, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) -
Method Summary
Methods inherited from class Message
align, append, appendByte, appendBytes, appendint, createHeaderArgs, demarshallint, demarshallint, demarshallintBig, demarshallintLittle, extract, extract, getAlignment, getByteCounter, getDestination, getEndianess, getFiledescriptors, getFlags, getHeader, getHeader, getHeaderFieldName, getInterface, getName, getParameters, getParameters, getPath, getReplySerial, getSerial, getSig, getSource, getType, getWireData, marshallint, marshallintBig, marshallintLittle, pad, padAndMarshall, setArgs, setByteCounter, setHeader, setSerial, setSource, setWireData, toString, updateEndianess
-
Constructor Details
-
MethodCall
protected MethodCall(byte _endianess, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) throws DBusException - Throws:
DBusException
-
MethodCall
protected MethodCall(byte _endianess, String _source, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) throws DBusException - Throws:
DBusException
-
-
Method Details
-
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
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
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
-