Module org.freedesktop.dbus
Class ConnectionMessageHandler
java.lang.Object
org.freedesktop.dbus.connections.base.AbstractConnectionBase
org.freedesktop.dbus.connections.base.ConnectionMethodInvocation
org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler
org.freedesktop.dbus.connections.base.ConnectionMessageHandler
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
AbstractConnection
public abstract sealed class ConnectionMessageHandler
extends DBusBoundPropertyHandler
permits AbstractConnection
Abstract class containing most methods to handle/react to a message received on a connection.
Part of the
Part of the
AbstractConnectionBase → ConnectionMethodInvocation
→ DBusBoundPropertyHandler → ConnectionMessageHandler → AbstractConnection hierarchy.- Since:
- 5.0.0 - 2023-10-23
-
Nested Class Summary
Nested classes/interfaces inherited from class org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler
DBusBoundPropertyHandler.PropHandled -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectionMessageHandler(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleException(Message _methodOrSignal, DBusExecutionException _exception) private voidhandleMessage(DBusSignal _signal, boolean _useThreadPool) Handle a signal received on DBus.protected voidhandleMessage(Error _err) (package private) voidhandleMessage(Message _message) Handle received message from DBus.private voidhandleMessage(MethodCall _methodCall) protected voidMethods inherited from class org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler
handleDBusBoundProperties, handleGet, handleGetAll, handleSetMethods inherited from class org.freedesktop.dbus.connections.base.ConnectionMethodInvocation
invokedMethodReply, invokeMethod, invokeMethodAndReply, queueInvokeMethod, setupAndInvokeMethods inherited from class org.freedesktop.dbus.connections.base.AbstractConnectionBase
close, connect, createReaderThread, disconnect, disconnect, doWithExportedObjects, doWithExportedObjectsAndReturn, getAddress, getBusAddress, getCallbackManager, getCallInfo, getConnectionConfig, getDisconnectCallback, getError, getExportedObject, getExportedObject, getExportedObject, getFallbackContainer, getGenericHandledSignals, getHandledSignals, getImportedObjects, getInfoMap, getLogger, getMachineId, getMessageFactory, getObjectTree, getPendingCalls, getPendingErrorQueue, getReceivingService, getTransport, getTransportConfig, internalDisconnect, isConnected, listen, readIncoming, rejectUnknownProperty, sendMessage, setDisconnectCallback, toString, unExportObject
-
Constructor Details
-
ConnectionMessageHandler
protected ConnectionMessageHandler(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) throws DBusException - Throws:
DBusException
-
-
Method Details
-
handleException
- Specified by:
handleExceptionin classConnectionMethodInvocation
-
handleMessage
Handle a signal received on DBus.- Parameters:
_signal- signal to handle_useThreadPool- whether to handle this signal in another thread or handle it byself
-
handleMessage
-
handleMessage
-
handleMessage
Handle received message from DBus.- Parameters:
_message-- Throws:
DBusException
-
handleMessage
- Throws:
DBusException
-