java.lang.Object
org.freedesktop.dbus.connections.base.ReceivingService
Service providing threads for every type of message expected to be received by DBus.
- Version:
- 4.1.0 - 2022-02-02
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final Map<ExecutorNames, ExecutorService> private final org.slf4j.Logger(package private) static final intprivate final IThreadPoolRetryHandler -
Constructor Summary
ConstructorsConstructorDescriptionReceivingService(String _namePrefix, ReceivingServiceConfig _rsCfg) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription(package private) intExecute a runnable which handles an error.(package private) intExecute a runnable which handles a method call.(package private) intExecute a runnable which handles the return of a method.(package private) intexecOrFail(ExecutorNames _executor, Runnable _r) Executes a runnable in a given executor.(package private) intExecute a runnable which handles a signal.(package private) ExecutorServicegetExecutor(ExecutorNames _executor) Returns the executor or null.voidShutdown all executor services waiting up to the given timeout/unit.voidForcefully stop the executors.
-
Field Details
-
MAX_RETRIES
static final int MAX_RETRIES- See Also:
-
logger
private final org.slf4j.Logger logger -
closed
private boolean closed -
executors
-
retryHandler
-
-
Constructor Details
-
ReceivingService
ReceivingService(String _namePrefix, ReceivingServiceConfig _rsCfg) Creates a new instance.- Parameters:
_rsCfg- configuration
-
-
Method Details
-
execSignalHandler
Execute a runnable which handles a signal.- Parameters:
_r- runnable- Returns:
- retries, if any input was null -1 is returned
-
execErrorHandler
Execute a runnable which handles an error.- Parameters:
_r- runnable- Returns:
- retries, if any input was null -1 is returned
-
execMethodCallHandler
Execute a runnable which handles a method call.- Parameters:
_r- runnable- Returns:
- retries, if any input was null -1 is returned
-
execMethodReturnHandler
Execute a runnable which handles the return of a method.- Parameters:
_r- runnable- Returns:
- retries, if any input was null -1 is returned
-
shutdown
Shutdown all executor services waiting up to the given timeout/unit.- Parameters:
_timeout- timeout_unit- time unit
-
shutdownNow
public void shutdownNow()Forcefully stop the executors.
-