Top Description Constructors Methods
org.freedesktop.dbus.connections.base

public abstract sealed Class ConnectionMessageHandler

extends DBusBoundPropertyHandler
permits AbstractConnection
Class Inheritance
Known Direct Subclasses
org.freedesktop.dbus.connections.AbstractConnection
Imports
org.freedesktop.dbus.*, org.freedesktop.dbus.connections.AbstractConnection, org.freedesktop.dbus.connections.config.ReceivingServiceConfig, .TransportConfig, org.freedesktop.dbus.connections.impl.ConnectionConfig, org.freedesktop.dbus.errors.UnknownMethod, .UnknownObject, org.freedesktop.dbus.exceptions.DBusException, .DBusExecutionException, org.freedesktop.dbus.interfaces.CallbackHandler, .DBusSigHandler, org.freedesktop.dbus.messages.*, .Error, java.lang.reflect.Method, java.util.ArrayList, .List, .Map.Entry, .Queue

Abstract class containing most methods to handle/react to a message received on a connection.
Part of the AbstractConnectionBase → ConnectionMethodInvocation → DBusBoundPropertyHandler → ConnectionMessageHandler → AbstractConnection hierarchy.
Author
hypfvieh
Since
5.0.0 - 2023-10-23

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected void
private void
handleMessage(final DBusSignal
signal to handle
_signal
,
boolean
whether to handle this signal in another thread or handle it byself
_useThreadPool
)

Handle a signal received on DBus.

protected void
handleMessage(final Error _err)

protected void
pack-priv void
handleMessage(Message _message)

Handle received message from DBus.

private void
handleMessage(final MethodCall _methodCall)

Inherited from org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler:
handleDBusBoundPropertieshandleGethandleGetAllhandleSet

Constructor Detail

ConnectionMessageHandlerback to summary
protected ConnectionMessageHandler(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) throws DBusException

Method Detail

handleExceptionback to summary
protected void handleException(Message _methodOrSignal, DBusExecutionException _exception)

Implements abstract org.freedesktop.dbus.connections.base.ConnectionMethodInvocation.handleException.

Annotations
@Override
handleMessageback to summary
private void handleMessage(final DBusSignal _signal, boolean _useThreadPool)

Handle a signal received on DBus.

Parameters
_signal:DBusSignal

signal to handle

_useThreadPool:boolean

whether to handle this signal in another thread or handle it byself

Annotations
@SuppressWarnings:unchecked
handleMessageback to summary
protected void handleMessage(final Error _err)
handleMessageback to summary
protected void handleMessage(final MethodReturn _mr)
Annotations
@SuppressWarnings:unchecked
handleMessageback to summary
pack-priv void handleMessage(Message _message) throws DBusException

Handle received message from DBus.

handleMessageback to summary
private void handleMessage(final MethodCall _methodCall) throws DBusException