Package org.freedesktop.dbus.messages
Class MethodCall
java.lang.Object
org.freedesktop.dbus.messages.Message
org.freedesktop.dbus.messages.MethodBase
org.freedesktop.dbus.messages.MethodCall
-
Nested Class Summary
Nested classes/interfaces inherited from class org.freedesktop.dbus.messages.Message
Message.ArgumentType, Message.Endian, Message.ExtractMethod, Message.Flags, Message.HeaderField, Message.MessageType -
Field Summary
FieldsFields inherited from class org.freedesktop.dbus.messages.Message
logger, MAXIMUM_ARRAY_LENGTH, MAXIMUM_MESSAGE_LENGTH, MAXIMUM_NUM_UNIX_FDS, PROTOCOL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.freedesktop.dbus.messages.MethodBase
appendFileDescriptorsMethods inherited from class org.freedesktop.dbus.messages.Message
align, append, appendByte, appendBytes, appendint, createHeaderArgs, demarshallint, demarshallint, demarshallintBig, demarshallintLittle, dumpWireData, extract, extract, extract, extractHeader, getAlignment, getBodylen, getByteCounter, getDestination, getEndianess, getFiledescriptors, getFlags, getHeader, getHeader, getHeaderFieldName, getHeaders, getInterface, getName, getParameters, getPath, getProtover, getReplySerial, getSerial, getSig, getSource, getType, getWiredata, getWireData, marshallint, marshallintBig, marshallintLittle, pad, padAndMarshall, populate, setArgs, setByteCounter, setHeader, setSerial, setSource, setWiredata, toString
-
Field Details
-
replyWaitTimeout
private static long replyWaitTimeout -
reply
Message reply
-
-
Constructor Details
-
MethodCall
MethodCall() -
MethodCall
public MethodCall(String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) throws DBusException - Throws:
DBusException
-
MethodCall
public MethodCall(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
-