public class ThreadedSocketAcceptor extends AbstractSocketAcceptor
Modifier and Type | Class and Description |
---|---|
static class |
ThreadedSocketAcceptor.Builder |
DEFAULT_QUEUE_CAPACITY, log, longLivedExecutor, propertyChangeSupport, QF_SESSION, QFJ_RESET_IO_CONNECTOR, SESSIONS_PROPERTY, shortLivedExecutor
SETTING_ACCEPTOR_TEMPLATE, SETTING_SOCKET_ACCEPT_ADDRESS, SETTING_SOCKET_ACCEPT_PORT, SETTING_SOCKET_ACCEPT_PROTOCOL
Constructor and Description |
---|
ThreadedSocketAcceptor(Application application,
MessageStoreFactory messageStoreFactory,
SessionSettings settings,
LogFactory logFactory,
MessageFactory messageFactory) |
ThreadedSocketAcceptor(Application application,
MessageStoreFactory messageStoreFactory,
SessionSettings settings,
LogFactory logFactory,
MessageFactory messageFactory,
int queueCapacity) |
ThreadedSocketAcceptor(Application application,
MessageStoreFactory messageStoreFactory,
SessionSettings settings,
MessageFactory messageFactory) |
ThreadedSocketAcceptor(Application application,
MessageStoreFactory messageStoreFactory,
SessionSettings settings,
MessageFactory messageFactory,
int queueCapacity) |
ThreadedSocketAcceptor(SessionFactory sessionFactory,
SessionSettings settings) |
ThreadedSocketAcceptor(SessionFactory sessionFactory,
SessionSettings settings,
int queueCapacity) |
Modifier and Type | Method and Description |
---|---|
protected EventHandlingStrategy |
getEventHandlingStrategy() |
static ThreadedSocketAcceptor.Builder |
newBuilder() |
void |
start()
Start accepting connections.
|
void |
stop(boolean forceDisconnect)
Stops all sessions, optionally waiting for logout completion.
|
getAcceptorAddresses, getEndpoints, getQueueSize, setSessionProvider, startAcceptingConnections, stopAcceptingConnections
addDynamicSession, addPropertyChangeListener, clearConnectorSessions, closeManagedSessionsAndDispose, createSession, getIntSetting, getIoFilterChainBuilder, getManagedSessions, getScheduledExecutorService, getSessionMap, getSessions, getSettings, isContinueInitOnError, isLoggedOn, logError, logoutAllSessions, removeDynamicSession, removePropertyChangeListener, setExecutorFactory, setIoFilterChainBuilder, setSessions, startSessionTimer, stopSessionTimer, waitForLogout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSessions, isLoggedOn, stop
public ThreadedSocketAcceptor(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory, int queueCapacity) throws ConfigError
ConfigError
public ThreadedSocketAcceptor(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) throws ConfigError
ConfigError
public ThreadedSocketAcceptor(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, MessageFactory messageFactory, int queueCapacity) throws ConfigError
ConfigError
public ThreadedSocketAcceptor(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, MessageFactory messageFactory) throws ConfigError
ConfigError
public ThreadedSocketAcceptor(SessionFactory sessionFactory, SessionSettings settings, int queueCapacity) throws ConfigError
ConfigError
public ThreadedSocketAcceptor(SessionFactory sessionFactory, SessionSettings settings) throws ConfigError
ConfigError
public static ThreadedSocketAcceptor.Builder newBuilder()
public void start() throws ConfigError, RuntimeError
Connector
ConfigError
- Problem with acceptor configuration.RuntimeError
- Other unspecified errorpublic void stop(boolean forceDisconnect)
Connector
forceDisconnect
- don't wait for logout before disconnect.protected EventHandlingStrategy getEventHandlingStrategy()
getEventHandlingStrategy
in class AbstractSocketAcceptor
Copyright © 2021. All rights reserved.