public class ReconnectManager extends AbstractLifeCycle implements Reconnector
| Constructor and Description |
|---|
ReconnectManager(ConnectionManager connectionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCancelUrl(Url url)
Deprecated.
|
void |
addReconnectTask(Url url)
Deprecated.
|
void |
disableReconnect(Url url)
Disable reconnect to the target url.
|
void |
enableReconnect(Url url)
Enable reconnect to the target url.
|
void |
reconnect(Url url)
Do reconnecting in async mode.
|
void |
removeCancelUrl(Url url)
Deprecated.
|
void |
shutdown() |
void |
startup() |
void |
stop()
Deprecated.
|
ensureStarted, isStartedpublic ReconnectManager(ConnectionManager connectionManager)
public void reconnect(Url url)
Reconnectorreconnect in interface Reconnectorurl - target urlpublic void disableReconnect(Url url)
ReconnectordisableReconnect in interface Reconnectorurl - target urlpublic void enableReconnect(Url url)
ReconnectorenableReconnect in interface Reconnectorurl - target urlpublic void startup()
throws LifeCycleException
startup in interface LifeCyclestartup in class AbstractLifeCycleLifeCycleExceptionpublic void shutdown()
throws LifeCycleException
shutdown in interface LifeCycleshutdown in class AbstractLifeCycleLifeCycleException@Deprecated public void addCancelUrl(Url url)
Reconnector.disableReconnect(Url) instead@Deprecated public void removeCancelUrl(Url url)
Reconnector.enableReconnect(Url) instead@Deprecated public void addReconnectTask(Url url)
Reconnector.reconnect(Url) instead@Deprecated public void stop()
LifeCycle.shutdown() insteadCopyright © 2024. All rights reserved.