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

public final Class DirectConnectionBuilder

extends BaseConnectionBuilder<DirectConnectionBuilder, DirectConnection>
Class Inheritance
Imports
org.freedesktop.dbus.connections.BusAddress, org.freedesktop.dbus.connections.config.ReceivingServiceConfig, .TransportConfig, org.freedesktop.dbus.exceptions.DBusException

Builder to create a new DirectConnection.
Author
hypfvieh
Version
4.1.0 - 2022-02-04

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public DirectConnection
public static DirectConnectionBuilder

Returns:

this
forAddress
(String
address to use
_address
)

Use the given address to create the connection (e.g. used for remote TCP connected DBus daemons).

Inherited from org.freedesktop.dbus.connections.impl.BaseConnectionBuilder:
buildThreadConfigbuildTransportConfiggetConnectionConfiggetSystemEndiannessreceivingThreadConfigselftransportConfigwithDisconnectCallbackwithExportWeakReferenceswithImportWeakReferenceswithUnknownSignalHandlerwithWeakReferences

Constructor Detail

DirectConnectionBuilderback to summary
private DirectConnectionBuilder(BusAddress _address)

Method Detail

buildback to summary
public DirectConnection build() throws DBusException

Implements abstract org.freedesktop.dbus.connections.impl.BaseConnectionBuilder.build.

Create the new DBusConnection.

Returns:DirectConnection

DBusConnection

Annotations
@Override
Exceptions
DBusException:
when DBusConnection could not be opened
forAddressback to summary
public static DirectConnectionBuilder forAddress(String _address)

Use the given address to create the connection (e.g. used for remote TCP connected DBus daemons).

Parameters
_address:String

address to use

Returns:DirectConnectionBuilder

this