ReceivingService.
Only intended to be used in combination with BaseConnectionBuilder
| Modifier and Type | Field and Description |
|---|---|
| private final ReceivingServiceConfig | |
| private final Supplier | |
| private static final ReceivingServiceConfig | |
| public static final int | |
| private static final IThreadPoolRetryHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ReceivingServiceConfig | |
| public R | Returns: connection builderReturns the used ConnectionBuilder for the connection for further configuration. |
| public static ReceivingServiceConfig | Returns: default configReturns the default configuration used for |
| public static IThreadPoolRetryHandler | Returns: default handlerReturns the default retry handler used for |
| public ReceivingServiceConfigBuilder | Returns: thisint >= 1 _threads)Set the size of the thread-pool used to handle error messages received on the bus. |
| public ReceivingServiceConfigBuilder | Returns: thisint >=1 and <= 10 _priority)Sets the thread priority of the created signal thread(s). |
| public ReceivingServiceConfigBuilder | Returns: thisint >=1 and <= 10 _priority)Sets the thread priority of the created signal thread(s). |
| public ReceivingServiceConfigBuilder | Returns: thisint >= 1 _threads)Set the size of the thread-pool used to handle methods calls previously sent to the bus. |
| public ReceivingServiceConfigBuilder | Returns: thisint >= 1 _threads)Set the size of the thread-pool used to handle method return values received on the bus. |
| public ReceivingServiceConfigBuilder | Returns: thisint >=1 and <= 10 _priority)Sets the thread priority of the created signal thread(s). |
| public ReceivingServiceConfigBuilder | Returns: thishandler to use _handler)Sets the retry handler which should be called when executing a runnable in |
| public ReceivingServiceConfigBuilder | Returns: thisint >= 1 _threads)Set the size of the thread-pool used to handle signals from the bus. |
| public ReceivingServiceConfigBuilder | Returns: thisint >=1 and <= 10 _priority)Sets the thread priority of the created signal thread(s). |
| config | back to summary |
|---|---|
| private final ReceivingServiceConfig config | |
| connectionBuilder | back to summary |
|---|---|
| private final Supplier<R> connectionBuilder | |
| DEFAULT_CFG | back to summary |
|---|---|
| private static final ReceivingServiceConfig DEFAULT_CFG | |
| DEFAULT_HANDLER_RETRIES | back to summary |
|---|---|
| public static final int DEFAULT_HANDLER_RETRIES | |
| DEFAULT_RETRYHANDLER | back to summary |
|---|---|
| private static final IThreadPoolRetryHandler DEFAULT_RETRYHANDLER | |
| ReceivingServiceConfigBuilder | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder(Supplier<R> _bldr) | |
| build | back to summary |
|---|---|
| public ReceivingServiceConfig build() Returns the configured
| |
| connectionConfig | back to summary |
|---|---|
| public R connectionConfig() Returns the used ConnectionBuilder for the connection for further configuration.
| |
| getDefaultConfig | back to summary |
|---|---|
| public static ReceivingServiceConfig getDefaultConfig() Returns the default configuration used for
| |
| getDefaultRetryHandler | back to summary |
|---|---|
| public static IThreadPoolRetryHandler getDefaultRetryHandler() Returns the default retry handler used for
| |
| withErrorHandlerThreadCount | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder Set the size of the thread-pool used to handle error messages received on the bus. Default: 1
| |
| withErrorThreadPriority | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder Sets the thread priority of the created signal thread(s).
Default:
| |
| withMethedCallThreadPriority | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder Sets the thread priority of the created signal thread(s).
Default:
| |
| withMethodCallThreadCount | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder 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
| |
| withMethodReturnThreadCount | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder Set the size of the thread-pool used to handle method return values received on the bus. Default: 1
| |
| withMethodReturnThreadPriority | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder Sets the thread priority of the created signal thread(s).
Default:
| |
| withRetryHandler | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder Sets the retry handler which should be called when executing a runnable in
Defaults to an implementation retrying executing the runnable up to ten times.
If
| |
| withSignalThreadCount | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder 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-order Default: 1
| |
| withSignalThreadPriority | back to summary |
|---|---|
| public ReceivingServiceConfigBuilder Sets the thread priority of the created signal thread(s).
Default:
| |