Modul org.freedesktop.dbus
Klasse ReceivingServiceConfigBuilder<R extends BaseConnectionBuilder<?,?>>
java.lang.Object
org.freedesktop.dbus.connections.config.ReceivingServiceConfigBuilder<R>
- Typparameter:
R
- BaseConnectionBuilder type
public final class ReceivingServiceConfigBuilder<R extends BaseConnectionBuilder<?,?>>
extends Object
Configuration builder to configure
ReceivingService
.
Only intended to be used in combination with BaseConnectionBuilder
- Seit:
- 4.2.0 - 2022-07-14
- Autor:
- hypfvieh
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuild()
Returns the configuredReceivingServiceConfig
instance.Returns the used ConnectionBuilder for the connection for further configuration.static ReceivingServiceConfig
Returns the default configuration used forReceivingService
.static IThreadPoolRetryHandler
Returns the default retry handler used forReceivingService
.withErrorHandlerThreadCount
(int _threads) Set the size of the thread-pool used to handle error messages received on the bus.withErrorThreadPriority
(int _priority) Sets the thread priority of the created signal thread(s).withMethedCallThreadPriority
(int _priority) Sets the thread priority of the created signal thread(s).withMethodCallThreadCount
(int _threads) Set the size of the thread-pool used to handle methods calls previously sent to the bus.withMethodReturnThreadCount
(int _threads) Set the size of the thread-pool used to handle method return values received on the bus.withMethodReturnThreadPriority
(int _priority) Sets the thread priority of the created signal thread(s).withRetryHandler
(IThreadPoolRetryHandler _handler) Sets the retry handler which should be called when executing a runnable inReceivingService
thread pools fail.withSignalThreadCount
(int _threads) Set the size of the thread-pool used to handle signals from the bus.withSignalThreadPriority
(int _priority) Sets the thread priority of the created signal thread(s).
-
Felddetails
-
DEFAULT_HANDLER_RETRIES
public static final int DEFAULT_HANDLER_RETRIES- Siehe auch:
-
-
Konstruktordetails
-
ReceivingServiceConfigBuilder
-
-
Methodendetails
-
withSignalThreadCount
Set the size of the thread-pool used to handle signals from the bus. Caution: Using thread-pool size > 1 may cause signals to be handled out-of-orderDefault: 1
- Parameter:
_threads
- int >= 1- Gibt zurück:
- this
-
withErrorHandlerThreadCount
Set the size of the thread-pool used to handle error messages received on the bus.Default: 1
- Parameter:
_threads
- int >= 1- Gibt zurück:
- this
-
withMethodCallThreadCount
Set the size of the thread-pool used to handle methods calls previously sent to the bus. The thread pool size has to be > 1 to handle recursive calls.Default: 4
- Parameter:
_threads
- int >= 1- Gibt zurück:
- this
-
withMethodReturnThreadCount
Set the size of the thread-pool used to handle method return values received on the bus.Default: 1
- Parameter:
_threads
- int >= 1- Gibt zurück:
- this
-
withSignalThreadPriority
Sets the thread priority of the created signal thread(s).Default:
Thread.NORM_PRIORITY
(5);- Parameter:
_priority
- int >=1 and <= 10- Gibt zurück:
- this
- Löst aus:
IllegalArgumentException
- when value is out ouf range (value < 1 && > 10)
-
withErrorThreadPriority
Sets the thread priority of the created signal thread(s).Default:
Thread.NORM_PRIORITY
(5);- Parameter:
_priority
- int >=1 and <= 10- Gibt zurück:
- this
- Löst aus:
IllegalArgumentException
- when value is out ouf range (value < 1 && > 10)
-
withMethedCallThreadPriority
Sets the thread priority of the created signal thread(s).Default:
Thread.NORM_PRIORITY
(5);- Parameter:
_priority
- int >=1 and <= 10- Gibt zurück:
- this
- Löst aus:
IllegalArgumentException
- when value is out ouf range (value < 1 && > 10)
-
withMethodReturnThreadPriority
Sets the thread priority of the created signal thread(s).Default:
Thread.NORM_PRIORITY
(5);- Parameter:
_priority
- int >=1 and <= 10- Gibt zurück:
- this
- Löst aus:
IllegalArgumentException
- when value is out ouf range (value < 1 && > 10)
-
build
Returns the configuredReceivingServiceConfig
instance.- Gibt zurück:
- config never null
-
connectionConfig
Returns the used ConnectionBuilder for the connection for further configuration.- Gibt zurück:
- connection builder
-
getDefaultConfig
Returns the default configuration used forReceivingService
.- Gibt zurück:
- default config
-
getDefaultRetryHandler
Returns the default retry handler used forReceivingService
.- Gibt zurück:
- default handler
-