public class ThreadedSocketInitiator extends AbstractSocketInitiator
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadedSocketInitiator.Builder |
log, QFJ_RECONNECT_THREAD_PREFIXDEFAULT_QUEUE_CAPACITY, longLivedExecutor, propertyChangeSupport, QF_SESSION, QFJ_RESET_IO_CONNECTOR, SESSIONS_PROPERTY, shortLivedExecutorSETTING_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, stopInitiatorsaddDynamicSession, addPropertyChangeListener, clearConnectorSessions, closeManagedSessionsAndDispose, createSession, getIntSetting, getIoFilterChainBuilder, getManagedSessions, getScheduledExecutorService, getSessionMap, getSessions, getSettings, isContinueInitOnError, isLoggedOn, logError, logoutAllSessions, removeDynamicSession, removePropertyChangeListener, setExecutorFactory, setIoFilterChainBuilder, setSessions, startSessionTimer, stopSessionTimer, waitForLogoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSessions, isLoggedOn, stoppublic ThreadedSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory, int queueCapacity) throws ConfigError
ConfigErrorpublic ThreadedSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) throws ConfigError
ConfigErrorpublic ThreadedSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, MessageFactory messageFactory, int queueCapacity) throws ConfigError
ConfigErrorpublic ThreadedSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, MessageFactory messageFactory) throws ConfigError
ConfigErrorpublic ThreadedSocketInitiator(SessionFactory sessionFactory, SessionSettings settings, int queueCapacity) throws ConfigError
ConfigErrorpublic ThreadedSocketInitiator(SessionFactory sessionFactory, SessionSettings settings) throws ConfigError
ConfigErrorpublic static ThreadedSocketInitiator.Builder newBuilder()
public void start()
throws ConfigError,
RuntimeError
ConnectorConfigError - Problem with acceptor configuration.RuntimeError - Other unspecified errorpublic void stop(boolean forceDisconnect)
ConnectorforceDisconnect - don't wait for logout before disconnect.protected EventHandlingStrategy getEventHandlingStrategy()
getEventHandlingStrategy in class AbstractSocketInitiatorCopyright © 2021. All rights reserved.