/** * Creates a new default SmppServer. Window monitoring and automatic * expiration of requests will be disabled with no monitorExecutors. * A "cachedDaemonThreadPool" will be used for IO worker threads. * @param configuration The server configuration to create this server with * @param serverHandler The handler implementation for handling bind requests * and creating/destroying sessions. */ public DefaultSmppServer(SmppServerConfiguration configuration, SmppServerHandler serverHandler) { this(configuration, serverHandler, DaemonExecutors.newCachedDaemonThreadPool()); }
/** * Creates a new default SmppClient. Window monitoring and automatic * expiration of requests will be disabled with no monitorExecutors. * The maximum number of IO worker threads across any client sessions * created with this SmppClient will be Runtime.getRuntime().availableProcessors(). * An Executors.newCachedDaemonThreadPool will be used for IO worker threads. */ public DefaultSmppClient() { this(DaemonExecutors.newCachedDaemonThreadPool()); }
/** * Creates a new default SmppServer. Window monitoring and automatic * expiration of requests will be disabled with no monitorExecutors. * A "cachedDaemonThreadPool" will be used for IO worker threads. * @param configuration The server configuration to create this server with * @param serverHandler The handler implementation for handling bind requests * and creating/destroying sessions. */ public DefaultSmppServer(SmppServerConfiguration configuration, SmppServerHandler serverHandler) { this(configuration, serverHandler, DaemonExecutors.newCachedDaemonThreadPool()); }
/** * Creates a new default SmppClient. Window monitoring and automatic * expiration of requests will be disabled with no monitorExecutors. * The maximum number of IO worker threads across any client sessions * created with this SmppClient will be Runtime.getRuntime().availableProcessors(). * An Executors.newCachedDaemonThreadPool will be used for IO worker threads. */ public DefaultSmppClient() { this(DaemonExecutors.newCachedDaemonThreadPool()); }
/** * Creates a new default SmppServer. Window monitoring and automatic * expiration of requests will be disabled with no monitorExecutors. * A "cachedDaemonThreadPool" will be used for IO worker threads. * @param configuration The server configuration to create this server with * @param serverHandler The handler implementation for handling bind requests * and creating/destroying sessions. */ public DefaultSmppServer(SmppServerConfiguration configuration, SmppServerHandler serverHandler) { this(configuration, serverHandler, DaemonExecutors.newCachedDaemonThreadPool()); }
/** * Creates a new default SmppClient. Window monitoring and automatic * expiration of requests will be disabled with no monitorExecutors. * The maximum number of IO worker threads across any client sessions * created with this SmppClient will be Runtime.getRuntime().availableProcessors(). * An Executors.newCachedDaemonThreadPool will be used for IO worker threads. */ public DefaultSmppClient() { this(DaemonExecutors.newCachedDaemonThreadPool()); }
/** * Creates a new default SmppServer. Window monitoring and automatic * expiration of requests will be disabled with no monitorExecutors. * A "cachedDaemonThreadPool" will be used for IO worker threads. * @param configuration The server configuration to create this server with * @param serverHandler The handler implementation for handling bind requests * and creating/destroying sessions. */ public DefaultSmppServer(SmppServerConfiguration configuration, SmppServerHandler serverHandler) { this(configuration, serverHandler, DaemonExecutors.newCachedDaemonThreadPool()); }
/** * Creates a new default SmppClient. Window monitoring and automatic * expiration of requests will be disabled with no monitorExecutors. * The maximum number of IO worker threads across any client sessions * created with this SmppClient will be Runtime.getRuntime().availableProcessors(). * An Executors.newCachedDaemonThreadPool will be used for IO worker threads. */ public DefaultSmppClient() { this(DaemonExecutors.newCachedDaemonThreadPool()); }
public ThreadPoolExecutor createMainExecutor() { return (ThreadPoolExecutor) DaemonExecutors.newCachedDaemonThreadPool(); }