| Modifier and Type | Field and Description |
|---|---|
| private final ConnectionConfig | |
| private final Class | |
| private final ReceivingServiceConfigBuilder | |
| private final TransportConfigBuilder |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract C | |
| protected ReceivingServiceConfig | |
| protected TransportConfig | |
| protected ConnectionConfig | |
| public static byte | |
| public ReceivingServiceConfigBuilder | |
| pack-priv R | |
| public TransportConfigBuilder | |
| public R | Returns: thiscallback _disconnectCallback)Set the given disconnect callback to the created connection. |
| public R | Returns: thistrue to enable _weakRef)Enable/Disable usage of weak references for exported objects. |
| public R | Returns: thistrue to enable _weakRef)Enable/Disable usage of weak references for imported objects. |
| public R | Returns: thiscallback which receives all unknown signals _handler)Configures a consumer which will receive any signal which could not be handled. |
| public R | Returns: thistrue to enable _weakRef)
Deprecated
for removal since 5.1.0 - 2024-07-12. use
withExportWeakReferences(boolean) instead
Enable/Disable weak references on connection. |
| connectionConfig | back to summary |
|---|---|
| private final ConnectionConfig connectionConfig | |
| returnType | back to summary |
|---|---|
| private final Class<R> returnType | |
| rsConfigBuilder | back to summary |
|---|---|
| private final ReceivingServiceConfigBuilder<R> rsConfigBuilder | |
| transportConfigBuilder | back to summary |
|---|---|
| private final TransportConfigBuilder<?, R> transportConfigBuilder | |
| BaseConnectionBuilder | back to summary |
|---|---|
| protected BaseConnectionBuilder(Class<R> _returnType, BusAddress _address) | |
| build | back to summary |
|---|---|
| public abstract C build() throws DBusException | |
| buildThreadConfig | back to summary |
|---|---|
| protected ReceivingServiceConfig buildThreadConfig() Creates the configuration to use for
| |
| buildTransportConfig | back to summary |
|---|---|
| protected TransportConfig buildTransportConfig() Creates the configuration to use for
| |
| getConnectionConfig | back to summary |
|---|---|
| protected ConnectionConfig getConnectionConfig() Returns the currently configured connection configuration.
| |
| getSystemEndianness | back to summary |
|---|---|
| public static byte getSystemEndianness() Get the default system endianness.
| |
| receivingThreadConfig | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder Returns the builder to configure the receiving thread pools.
| |
| self | back to summary |
|---|---|
| pack-priv R self() Return ourselves.
| |
| transportConfig | back to summary |
|---|---|
| public TransportConfigBuilder Returns the builder to configure the used transport.
| |
| withDisconnectCallback | back to summary |
|---|---|
| public R withDisconnectCallback(IDisconnectCallback _disconnectCallback) Set the given disconnect callback to the created connection.
| |
| withExportWeakReferences | back to summary |
|---|---|
| public R withExportWeakReferences(boolean _weakRef) Enable/Disable usage of weak references for exported objects. Exported objects are objects provided by the application to DBus and are used through DBus by other applications.
Using weak references may allow the Garbage Collector to remove exported objects
when they are no longer reachable.
Enabling this feature may cause dbus-java to be forced to re-create exported objects
because the GC already cleaned up the old references.
| |
| withImportWeakReferences | back to summary |
|---|---|
| public R withImportWeakReferences(boolean _weakRef) Enable/Disable usage of weak references for imported objects.
Imported objects are all objects which are created when calling interfaces which belong to any object provided by DBus.
Usually all imported objects are dropped when the connection gets closed (by either side).
The current default is false.
| |
| withUnknownSignalHandler | back to summary |
|---|---|
| public R withUnknownSignalHandler(Consumer<DBusSignal> _handler) Configures a consumer which will receive any signal which could not be handled. By default, no handler is configured, so unknown/unhandled signals will be ignored and only be logged as warn message.
| |
| withWeakReferences | back to summary |
|---|---|
| public R withWeakReferences(boolean _weakRef)
Enable/Disable weak references on connection. Default is false.
| |