@Component public class DefaultSynchronyMonitor extends Object implements SynchronyMonitor
Constructor and Description |
---|
DefaultSynchronyMonitor(BootstrapManager bootstrapManager,
com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager configurationManager,
com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyExecutorServiceProvider executorServiceProvider,
HttpClientProvider httpClientProvider) |
Modifier and Type | Method and Description |
---|---|
void |
cancelHeartbeat()
Cancels polling the Synchrony heartbeat rest endpoint if a poll is currently in progress,
useful when Synchrony is shutdown before it is able to resolve a successful heartbeat result.
|
boolean |
isSynchronyUp()
Determines if the Synchrony that Confluence uses to connect to is currently running or not.
|
com.atlassian.util.concurrent.Promise<Boolean> |
pollHeartbeat()
Ping the Synchrony heartbeat rest endpoint, until the result is a 200 OK or a timeout is reached.
|
@Autowired public DefaultSynchronyMonitor(BootstrapManager bootstrapManager, com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager configurationManager, com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyExecutorServiceProvider executorServiceProvider, HttpClientProvider httpClientProvider)
public boolean isSynchronyUp()
SynchronyMonitor
isSynchronyUp
in interface SynchronyMonitor
public com.atlassian.util.concurrent.Promise<Boolean> pollHeartbeat()
SynchronyMonitor
pollHeartbeat
in interface SynchronyMonitor
public void cancelHeartbeat()
SynchronyMonitor
cancelHeartbeat
in interface SynchronyMonitor
Copyright © 2003–2017 Atlassian. All rights reserved.