Modul org.freedesktop.dbus
Klasse BaseConnectionBuilder<R extends BaseConnectionBuilder<R,C>,C extends AbstractConnection>
java.lang.Object
org.freedesktop.dbus.connections.impl.BaseConnectionBuilder<R,C>
- Typparameter:
R
- concrete type of connection builder
- Bekannte direkte Unterklassen:
DBusConnectionBuilder
,DirectConnectionBuilder
public abstract class BaseConnectionBuilder<R extends BaseConnectionBuilder<R,C>,C extends AbstractConnection>
extends Object
Base class for connection builders containing commonly used options.
- Seit:
- 4.2.0 - 2022-07-13
- Autor:
- hypfvieh
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
BaseConnectionBuilder
(Class<R> _returnType, BusAddress _address) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract C
build()
protected ReceivingServiceConfig
Creates the configuration to use forReceivingService
.protected TransportConfig
Creates the configuration to use forTransportBuilder
.protected IDisconnectCallback
static byte
Get the default system endianness.protected boolean
Returns the builder to configure the receiving thread pools.Returns the builder to configure the used transport.withDisconnectCallback
(IDisconnectCallback _disconnectCallback) Set the given disconnect callback to the created connection.withWeakReferences
(boolean _weakRef) Enable/Disable weak references on connection.
-
Konstruktordetails
-
BaseConnectionBuilder
-
-
Methodendetails
-
buildThreadConfig
Creates the configuration to use forReceivingService
.- Gibt zurück:
- config
-
buildTransportConfig
Creates the configuration to use forTransportBuilder
.- Gibt zurück:
- config
-
isWeakReference
protected boolean isWeakReference() -
getDisconnectCallback
-
receivingThreadConfig
Returns the builder to configure the receiving thread pools.- Gibt zurück:
- builder
-
transportConfig
Returns the builder to configure the used transport.- Gibt zurück:
- builder
-
withWeakReferences
Enable/Disable weak references on connection. Default is false.- Parameter:
_weakRef
- true to enable- Gibt zurück:
- this
-
withDisconnectCallback
Set the given disconnect callback to the created connection.- Parameter:
_disconnectCallback
- callback- Gibt zurück:
- this
-
build
- Löst aus:
DBusException
-
getSystemEndianness
public static byte getSystemEndianness()Get the default system endianness.- Gibt zurück:
- LITTLE or BIG
-