| Modifier and Type | Field and Description |
|---|---|
| private TransportConfig | |
| private final Supplier | |
| private final SaslConfigBuilder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public R | |
| public TransportConfig | |
| public SaslConfigBuilder | Returns: SaslConfigBuilderSwitch to the |
| public BusAddress | |
| pack-priv X | |
| public X | Returns: thiskey to use _key, Object value to use _value)Adds an additional config key to the transport config. |
| public X | Returns: thisconsumer to call, null to remove any callback _callback)Set a callback which will be called after |
| public X | Returns: thisboolean _connect)Instantly connect to DBus when |
| public X | Returns: thisaddress to use _address)Set the |
| public X | Returns: thisconfiguration, never null _config)Use the predefined TransportConfig. |
| public X | Returns: thisEndian#BIG or 108Set the endianess for the connection Default is based on system endianess. |
| public X | Returns: thistrue to be a listening connection _listen)Use true to use the transport as listener (server). |
| public X | Returns: thisconsumer to call, null to remove any callback _callback)Set a callback which will be called right before the connection to the transport is established. |
| public X | Returns: thisboolean _register)Register the new connection on DBus using 'hello' message. |
| public X | Returns: thiskey to remove _key)Removes an additional config key to of transport config. |
| public X | Returns: thisclass loader _ldr)Configure parent class loader used for |
| public X | Returns: thismodule layer _layer)Configure |
| public X | Returns: thistrue to be a listening connection _timeout)Setup a timeout for the transport. |
| public X | Returns: thisgroup to set, if null is given JVM process group is used _group)The group of the socket file if a unix socket is used and this is a server transport. |
| public X | Returns: thisuser to set, if null is given JVM process user is used _user)The owner of the socket file if a unix socket is used and this is a server transport. |
| public X | Returns: thispermissions to set, if null is given default permissions will be used _permissions)The permissions which will be set on socket file if a unix socket is used and this is a server transport. |
| config | back to summary |
|---|---|
| private TransportConfig config | |
| connectionBuilder | back to summary |
|---|---|
| private final Supplier<R> connectionBuilder | |
| saslConfigBuilder | back to summary |
|---|---|
| private final SaslConfigBuilder<R> saslConfigBuilder | |
| TransportConfigBuilder | back to summary |
|---|---|
| public TransportConfigBuilder(Supplier<R> _sup) | |
| back | back to summary |
|---|---|
| public R back() Return to the previous builder. This allows you to return from the this builder to the builder which started this builder so you can continue using the previous builder.
| |
| build | back to summary |
|---|---|
| public TransportConfig build() Returns the transport config.
| |
| configureSasl | back to summary |
|---|---|
| public SaslConfigBuilder Switch to the
| |
| getBusAddress | back to summary |
|---|---|
| public BusAddress getBusAddress() Returns the currently configured BusAddress.
| |
| self | back to summary |
|---|---|
| pack-priv X self() Return ourselves.
| |
| withAdditionalConfig | back to summary |
|---|---|
| public X withAdditionalConfig(String _key, Object _value) Adds an additional config key to the transport config. | |
| withAfterBindCallback | back to summary |
|---|---|
| public X withAfterBindCallback(Consumer<AbstractTransport> _callback) Set a callback which will be called after
The given consumer will receive the created
| |
| withAutoConnect | back to summary |
|---|---|
| public X withAutoConnect(boolean _connect) Instantly connect to DBus when This option will be ignored when this is a listening (server) socket. default: true
| |
| withBusAddress | back to summary |
|---|---|
| public X withBusAddress(BusAddress _address) Set the
| |
| withConfig | back to summary |
|---|---|
| public X withConfig(TransportConfig _config) Use the predefined TransportConfig. Using this will override any previous configuration and replaces the internal configuration object with the given instance.
| |
| withEndianess | back to summary |
|---|---|
| public X withEndianess(byte _endianess) Set the endianess for the connection Default is based on system endianess.
| |
| withListening | back to summary |
|---|---|
| public X withListening(boolean _listen) Use true to use the transport as listener (server).
| |
| withPreConnectCallback | back to summary |
|---|---|
| public X withPreConnectCallback(Consumer<AbstractTransport> _callback) Set a callback which will be called right before the connection to the transport is established.
The given consumer will receive the created
| |
| withRegisterSelf | back to summary |
|---|---|
| public X withRegisterSelf(boolean _register) Register the new connection on DBus using 'hello' message. Default is true.
| |
| withRemoveAdditionalConfig | back to summary |
|---|---|
| public X withRemoveAdditionalConfig(String _key) Removes an additional config key to of transport config.
| |
| withServiceLoaderClassLoader | back to summary |
|---|---|
| public X withServiceLoaderClassLoader(ClassLoader _ldr) Configure parent class loader used for
| |
| withServiceLoaderModuleLayer | back to summary |
|---|---|
| public X withServiceLoaderModuleLayer(ModuleLayer _layer) Configure
| |
| withTimeout | back to summary |
|---|---|
| public X withTimeout(int _timeout) Setup a timeout for the transport. This option might not be used by every transport (e.g. unix sockets do not support a timeout). Timeout cannot be less than zero.
| |
| withUnixSocketFileGroup | back to summary |
|---|---|
| public X withUnixSocketFileGroup(String _group) The group of the socket file if a unix socket is used and this is a server transport. Default is the group of the running JVM process Note The running process user has to have suitable permissions to change the group of the file. Otherwise the file group will not be changed!
| |
| withUnixSocketFileOwner | back to summary |
|---|---|
| public X withUnixSocketFileOwner(String _user) The owner of the socket file if a unix socket is used and this is a server transport. Default is the user of the running JVM process Note The running process user has to have suitable permissions to change the owner of the file. Otherwise the file owner will not be changed!
| |
| withUnixSocketFilePermissions | back to summary |
|---|---|
| public X withUnixSocketFilePermissions(PosixFilePermission... _permissions) The permissions which will be set on socket file if a unix socket is used and this is a server transport. This method does nothing when used on windows systems Note The running process user has to have suitable permissions to change the permissions of the file. Otherwise the file permissions will not be changed!
| |