public interface ConnectorMBean
Connector
class to use with JMX technology.Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Returns address string of this connector.
|
int |
getHeartbeatPeriod()
Returns heartbeat period (in milliseconds) or 0 if heartbeats are disabled.
|
int |
getHeartbeatTimeout()
Returns heartbeat timeout (in milliseconds) or 0 if heartbeats are disabled.
|
int |
getReconnectionPeriod()
Returns reconnection period (in milliseconds) or 0 for immediate reeconnect.
|
double |
getSkewFactor()
Returns skew factor in a range [0,1].
|
void |
restart()
|
void |
setAddress(String address)
Sets new address string for this connector, closes connections that were established for
addresses that are no longer in the address string, starts (if required) new connections
for new addresses, does nothing for connections those addresses have not changed.
|
void |
setHeartbeatPeriod(int heartbeat_period)
Sets new heartbeat period (in milliseconds) or 0 to disable heartbeats.
|
void |
setHeartbeatTimeout(int heartbeat_timeout)
Sets new heartbeat timeout (in milliseconds) or 0 to disable heartbeats.
|
void |
setReconnectionPeriod(int reconnection_period)
Sets new reconnection period (in milliseconds) or 0 for immediate reconnect.
|
void |
setSkewFactor(double skew_factor)
Sets new skew factor in a range [0,1].
|
void |
start()
Starts this connector.
|
void |
stop()
Stops this connector and closes all open connections.
|
int getHeartbeatPeriod()
void setHeartbeatPeriod(int heartbeat_period)
IllegalArgumentException
- if specified period is negative.int getHeartbeatTimeout()
void setHeartbeatTimeout(int heartbeat_timeout)
IllegalArgumentException
- if specified timeout is negative.int getReconnectionPeriod()
void setReconnectionPeriod(int reconnection_period)
IllegalArgumentException
- if specified period is negative.double getSkewFactor()
void setSkewFactor(double skew_factor)
getSkewFactor()
for details.IllegalArgumentException
- if specified skew factor is out of range.String getAddress()
void setAddress(String address)
getAddress()
for details.void start()
void stop()
void restart()
Copyright © 2002–2025 Devexperts LLC. All rights reserved.