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
  • Konstruktordetails

    • BaseConnectionBuilder

      protected BaseConnectionBuilder(Class<R> _returnType, BusAddress _address)
  • Methodendetails

    • buildThreadConfig

      protected ReceivingServiceConfig buildThreadConfig()
      Creates the configuration to use for ReceivingService.
      Gibt zurück:
      config
    • buildTransportConfig

      protected TransportConfig buildTransportConfig()
      Creates the configuration to use for TransportBuilder.
      Gibt zurück:
      config
    • isWeakReference

      protected boolean isWeakReference()
    • getDisconnectCallback

      protected IDisconnectCallback getDisconnectCallback()
    • receivingThreadConfig

      public ReceivingServiceConfigBuilder<R> receivingThreadConfig()
      Returns the builder to configure the receiving thread pools.
      Gibt zurück:
      builder
    • transportConfig

      public TransportConfigBuilder<?,R> transportConfig()
      Returns the builder to configure the used transport.
      Gibt zurück:
      builder
    • withWeakReferences

      public R withWeakReferences(boolean _weakRef)
      Enable/Disable weak references on connection. Default is false.
      Parameter:
      _weakRef - true to enable
      Gibt zurück:
      this
    • withDisconnectCallback

      public R withDisconnectCallback(IDisconnectCallback _disconnectCallback)
      Set the given disconnect callback to the created connection.
      Parameter:
      _disconnectCallback - callback
      Gibt zurück:
      this
    • build

      public abstract C build() throws DBusException
      Löst aus:
      DBusException
    • getSystemEndianness

      public static byte getSystemEndianness()
      Get the default system endianness.
      Gibt zurück:
      LITTLE or BIG