
org.freedesktop.dbus.connections.config.ReceivingServiceConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbus-java-osgi Show documentation
Show all versions of dbus-java-osgi Show documentation
Improved version of the DBus-Java library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/).
This is the OSGi compliant bundle of all required libraries in one bundle.
package org.freedesktop.dbus.connections.config;
import org.freedesktop.dbus.connections.shared.IThreadPoolRetryHandler;
/**
* Bean which holds configuration for {@link org.freedesktop.dbus.connections.base.ReceivingService}.
*
* @author hypfvieh
* @since 4.2.0 - 2022-07-14
*/
public final class ReceivingServiceConfig {
private int signalThreadPoolSize = 1;
private int errorThreadPoolSize = 1;
private int methodCallThreadPoolSize = 4;
private int methodReturnThreadPoolSize = 1;
private int signalThreadPriority = Thread.NORM_PRIORITY;
private int methodCallThreadPriority = Thread.NORM_PRIORITY;
private int errorThreadPriority = Thread.NORM_PRIORITY;
private int methodReturnThreadPriority = Thread.NORM_PRIORITY;
private IThreadPoolRetryHandler retryHandler;
ReceivingServiceConfig() {
}
public int getSignalThreadPoolSize() {
return signalThreadPoolSize;
}
public int getErrorThreadPoolSize() {
return errorThreadPoolSize;
}
public int getMethodCallThreadPoolSize() {
return methodCallThreadPoolSize;
}
public int getMethodReturnThreadPoolSize() {
return methodReturnThreadPoolSize;
}
public int getSignalThreadPriority() {
return signalThreadPriority;
}
public int getMethodCallThreadPriority() {
return methodCallThreadPriority;
}
public int getErrorThreadPriority() {
return errorThreadPriority;
}
public int getMethodReturnThreadPriority() {
return methodReturnThreadPriority;
}
public IThreadPoolRetryHandler getRetryHandler() {
return retryHandler;
}
void setSignalThreadPoolSize(int _signalThreadPoolSize) {
signalThreadPoolSize = _signalThreadPoolSize;
}
void setErrorThreadPoolSize(int _errorThreadPoolSize) {
errorThreadPoolSize = _errorThreadPoolSize;
}
void setMethodCallThreadPoolSize(int _methodCallThreadPoolSize) {
methodCallThreadPoolSize = _methodCallThreadPoolSize;
}
void setMethodReturnThreadPoolSize(int _methodReturnThreadPoolSize) {
methodReturnThreadPoolSize = _methodReturnThreadPoolSize;
}
void setSignalThreadPriority(int _signalThreadPriority) {
signalThreadPriority = _signalThreadPriority;
}
void setMethodCallThreadPriority(int _methodCallThreadPriority) {
methodCallThreadPriority = _methodCallThreadPriority;
}
void setErrorThreadPriority(int _errorThreadPriority) {
errorThreadPriority = _errorThreadPriority;
}
void setMethodReturnThreadPriority(int _methodReturnThreadPriority) {
methodReturnThreadPriority = _methodReturnThreadPriority;
}
void setRetryHandler(IThreadPoolRetryHandler _retryHandler) {
retryHandler = _retryHandler;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy