Module org.freedesktop.dbus
Class DirectConnectionBuilder
java.lang.Object
org.freedesktop.dbus.connections.impl.BaseConnectionBuilder<DirectConnectionBuilder,DirectConnection>
org.freedesktop.dbus.connections.impl.DirectConnectionBuilder
public final class DirectConnectionBuilder
extends BaseConnectionBuilder<DirectConnectionBuilder,DirectConnection>
Builder to create a new DirectConnection.
- Version:
- 4.1.0 - 2022-02-04
- Author:
- hypfvieh
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create the newDBusConnection.static DirectConnectionBuilderforAddress(String _address) Use the given address to create the connection (e.g. used for remote TCP connected DBus daemons).Methods inherited from class org.freedesktop.dbus.connections.impl.BaseConnectionBuilder
buildThreadConfig, buildTransportConfig, getConnectionConfig, getSystemEndianness, receivingThreadConfig, transportConfig, withDisconnectCallback, withExportWeakReferences, withImportWeakReferences, withUnknownSignalHandler, withWeakReferences
-
Method Details
-
forAddress
Use the given address to create the connection (e.g. used for remote TCP connected DBus daemons).- Parameters:
_address- address to use- Returns:
- this
-
build
Create the newDBusConnection.- Specified by:
buildin classBaseConnectionBuilder<DirectConnectionBuilder,DirectConnection> - Returns:
DBusConnection- Throws:
DBusException- when DBusConnection could not be opened
-