|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageConnector
Method Summary | |
---|---|
void |
addMessageConnectorListener(MessageConnectorListener listener)
Adds the specified listener to this message connector. |
java.lang.String |
getAddress()
Returns address string of this connector. |
int |
getConnectionCount()
Returns number of established connections. |
com.devexperts.transport.stats.EndpointStats |
getEndpointStats()
Returns statistics for this message connector. |
java.lang.String |
getName()
Returns connector's short name for logging and monitoring. |
long |
getReconnectDelay()
Returns reconnection delay. |
MessageConnectorState |
getState()
Returns description of connectior's state as a string. |
QDStats |
getStats()
Returns QDStats assosiated with this message connector. |
int |
getThreadPriority()
Returns thread priority for all threads created by this connector. |
boolean |
isActive()
Returns true if connector is started (not stopped). |
void |
removeMessageConnectorListener(MessageConnectorListener listener)
Removes the specified listener from this message connector. |
void |
restart()
Restarts connector (connection is immediately dropped and established again). |
void |
setName(java.lang.String name)
Sets connector's short name for logging and monitoring. |
void |
setReconnectDelay(long delay)
Sets reconnection delay. |
void |
setStats(QDStats stats)
|
void |
setThreadPriority(int priority)
Sets thread priority for all threads created by this connector. |
void |
start()
Starts connector (connection is immediately established). |
void |
stop()
Stops connector (connection is immediately dropped). |
Method Detail |
---|
QDStats getStats()
QDStats
assosiated with this message connector.
void setStats(QDStats stats)
java.lang.String getAddress()
void start()
void stop()
void restart()
stop()
and start()
in sequence.
boolean isActive()
MessageConnectorState getState()
java.lang.String getName()
void setName(java.lang.String name)
name
- connector's new short name for logging and monitoringint getConnectionCount()
int getThreadPriority()
void setThreadPriority(int priority)
priority
- thread priority for all threads created by this connectorlong getReconnectDelay()
void setReconnectDelay(long delay)
delay
- reconnection delaycom.devexperts.transport.stats.EndpointStats getEndpointStats()
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
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |