Package com.lucimber.dbus.message
Class OutboundMethodCall
java.lang.Object
com.lucimber.dbus.message.OutboundMethodCall
- All Implemented Interfaces:
Message,OutboundMessage
An outbound method call.
- Since:
- 1.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOutboundMethodCall(DBusUInt32 serial, DBusObjectPath path, DBusString member, boolean replyExpected, DBusString dst, DBusString iface, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter.OutboundMethodCall(DBusUInt32 serial, DBusObjectPath path, DBusString member, boolean replyExpected, DBusString dst, DBusString iface, DBusSignature signature, List<? extends DBusType> payload, Duration timeout) Constructs a new instance with all parameter including timeout. -
Method Summary
Modifier and TypeMethodDescriptionGets the unique name of the destination.Gets the name of the interface, to which this method belongs.Gets the name of this method.Gets the object path of this method.Gets the payload of this D-Bus message.Gets the serial number of this D-Bus message.Gets the signature of the payload.Gets the timeout override for this method call.booleanStates if the sender expects a reply to this method call or not.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.lucimber.dbus.message.Message
getPayload, getSerial, getSignature
-
Constructor Details
-
OutboundMethodCall
public OutboundMethodCall(DBusUInt32 serial, DBusObjectPath path, DBusString member, boolean replyExpected, DBusString dst, DBusString iface, DBusSignature signature, List<? extends DBusType> payload) Constructs a new instance with all parameter. Please use the builder instead.- Parameters:
serial- the serial numberpath- the object pathmember- the name of the methodreplyExpected- states if reply is expecteddst- optional; the destination of this method calliface- optional; the name of the interfacesignature- optional; the signature of the message bodypayload- optional; the message body
-
OutboundMethodCall
public OutboundMethodCall(DBusUInt32 serial, DBusObjectPath path, DBusString member, boolean replyExpected, DBusString dst, DBusString iface, DBusSignature signature, List<? extends DBusType> payload, Duration timeout) Constructs a new instance with all parameter including timeout. Please use the builder instead.- Parameters:
serial- the serial numberpath- the object pathmember- the name of the methodreplyExpected- states if reply is expecteddst- optional; the destination of this method calliface- optional; the name of the interfacesignature- optional; the signature of the message bodypayload- optional; the message bodytimeout- optional; timeout override for this specific call
-
-
Method Details
-
getDestination
Description copied from interface:OutboundMessageGets the unique name of the destination.- Specified by:
getDestinationin interfaceOutboundMessage- Returns:
- an
OptionalofDBusString
-
isReplyExpected
public boolean isReplyExpected()States if the sender expects a reply to this method call or not.- Returns:
TRUEif reply is expected,FALSEotherwise.
-
getTimeout
Gets the timeout override for this method call.- Returns:
- the timeout duration, or empty if no override is specified
-
toString
-
getObjectPath
Gets the object path of this method.- Returns:
- an
DBusObjectPath
-
getMember
Gets the name of this method.- Returns:
- a
DBusString
-
getInterfaceName
Gets the name of the interface, to which this method belongs.- Returns:
- a
DBusString
-
getSerial
Description copied from interface:MessageGets the serial number of this D-Bus message.- Specified by:
getSerialin interfaceMessage- Returns:
- an
DBusUInt32
-
getPayload
Description copied from interface:MessageGets the payload of this D-Bus message.- Specified by:
getPayloadin interfaceMessage- Returns:
- a
ListofDBusTypes.
-
getSignature
Description copied from interface:MessageGets the signature of the payload.- Specified by:
getSignaturein interfaceMessage- Returns:
- an
OptionalofDBusSignature
-