public interface MessageConnector extends MessageConnectorMBean
Modifier and Type | Interface and Description |
---|---|
static interface |
MessageConnector.Bindable
Deprecated.
Experimental API. May be subject to backward-incompatible changes in the future.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessageConnectorListener(MessageConnectorListener listener)
Adds the specified
listener to this message connector. |
default void |
awaitProcessed()
Waits until this connector stops processing (becomes quescient).
|
default void |
close()
Permanently closes connector and releases its resources.
|
long |
getClosedConnectionCount()
Returns total number of closed connector since the creation of connector.
|
com.devexperts.connector.proto.ApplicationConnectionFactory |
getFactory()
Returns
ApplicationConnectionFactory that is used by this message connector. |
QDStats |
getStats()
Returns
QDStats associated with this message connector. |
void |
removeMessageConnectorListener(MessageConnectorListener listener)
Removes the specified
listener from this message connector. |
void |
setFactory(com.devexperts.connector.proto.ApplicationConnectionFactory factory)
Changes
ApplicationConnectionFactory that is used by this message connector. |
void |
setStats(QDStats stats)
Changes
QDStats associated with this message connector. |
void |
stopAndWait()
Stops connector and waits while all its threads are terminated.
|
getAddress, getConnectionCount, getEndpointStats, getFieldReplacer, getName, getPassword, getReconnectDelay, getState, getThreadPriority, getUser, isActive, reconnect, resetEndpointStats, restart, retrieveCompleteEndpointStats, setFieldReplacer, setName, setPassword, setReconnectDelay, setThreadPriority, setUser, start, stop
QDStats getStats()
QDStats
associated with this message connector.void addMessageConnectorListener(MessageConnectorListener listener)
listener
to this message connector.listener
- newly adding MessageConnectorListener
.void removeMessageConnectorListener(MessageConnectorListener listener)
listener
from this message connector.listener
- removing MessageConnectorListener
.com.devexperts.connector.proto.ApplicationConnectionFactory getFactory()
ApplicationConnectionFactory
that is used by this message connector.ApplicationConnectionFactory
that is used by this message connector.void setFactory(com.devexperts.connector.proto.ApplicationConnectionFactory factory)
ApplicationConnectionFactory
that is used by this message connector.factory
- ApplicationConnectionFactory
that will be used by this message connector.default void awaitProcessed() throws InterruptedException
InterruptedException
- if interrupted.void stopAndWait() throws InterruptedException
InterruptedException
- if interrupted.long getClosedConnectionCount()
default void close()
Copyright © 2002–2025 Devexperts LLC. All rights reserved.