public class ThreadedSocketInitiator extends AbstractSocketInitiator
Modifier and Type | Class and Description |
---|---|
static class |
ThreadedSocketInitiator.Builder |
log, QFJ_RECONNECT_THREAD_PREFIX
DEFAULT_QUEUE_CAPACITY, longLivedExecutor, propertyChangeSupport, QF_SESSION, QFJ_RESET_IO_CONNECTOR, SESSIONS_PROPERTY, shortLivedExecutor
SETTING_DYNAMIC_SESSION, SETTING_PROXY_DOMAIN, SETTING_PROXY_HOST, SETTING_PROXY_PASSWORD, SETTING_PROXY_PORT, SETTING_PROXY_TYPE, SETTING_PROXY_USER, SETTING_PROXY_VERSION, SETTING_PROXY_WORKSTATION, SETTING_RECONNECT_INTERVAL, SETTING_SOCKET_CONNECT_HOST, SETTING_SOCKET_CONNECT_PORT, SETTING_SOCKET_CONNECT_PROTOCOL, SETTING_SOCKET_LOCAL_HOST, SETTING_SOCKET_LOCAL_PORT
Constructor and Description |
---|
ThreadedSocketInitiator(Application application,
MessageStoreFactory messageStoreFactory,
SessionSettings settings,
LogFactory logFactory,
MessageFactory messageFactory) |
ThreadedSocketInitiator(Application application,
MessageStoreFactory messageStoreFactory,
SessionSettings settings,
LogFactory logFactory,
MessageFactory messageFactory,
int queueCapacity) |
ThreadedSocketInitiator(Application application,
MessageStoreFactory messageStoreFactory,
SessionSettings settings,
MessageFactory messageFactory) |
ThreadedSocketInitiator(Application application,
MessageStoreFactory messageStoreFactory,
SessionSettings settings,
MessageFactory messageFactory,
int queueCapacity) |
ThreadedSocketInitiator(SessionFactory sessionFactory,
SessionSettings settings) |
ThreadedSocketInitiator(SessionFactory sessionFactory,
SessionSettings settings,
int queueCapacity) |
Modifier and Type | Method and Description |
---|---|
protected EventHandlingStrategy |
getEventHandlingStrategy() |
static ThreadedSocketInitiator.Builder |
newBuilder() |
void |
start()
Start accepting connections.
|
void |
stop(boolean forceDisconnect)
Stops all sessions, optionally waiting for logout completion.
|
createDynamicSession, createSessionInitiators, getInitiators, getQueueSize, startInitiators, stopInitiators
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 ThreadedSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory, int queueCapacity) throws ConfigError
ConfigError
public ThreadedSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) throws ConfigError
ConfigError
public ThreadedSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, MessageFactory messageFactory, int queueCapacity) throws ConfigError
ConfigError
public ThreadedSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, MessageFactory messageFactory) throws ConfigError
ConfigError
public ThreadedSocketInitiator(SessionFactory sessionFactory, SessionSettings settings, int queueCapacity) throws ConfigError
ConfigError
public ThreadedSocketInitiator(SessionFactory sessionFactory, SessionSettings settings) throws ConfigError
ConfigError
public static ThreadedSocketInitiator.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 AbstractSocketInitiator
Copyright © 2021. All rights reserved.