Class DefaultSynchronyMonitor

    • Constructor Summary

      Constructor Description
      DefaultSynchronyMonitor​(com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager configurationManager, com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyExecutorServiceProvider executorServiceProvider,<?> requestFactory)  
    • Constructor Detail

      • DefaultSynchronyMonitor

        public DefaultSynchronyMonitor​(com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager configurationManager,
                                       com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyExecutorServiceProvider executorServiceProvider,
                             <?> requestFactory)
    • Method Detail

      • isSynchronyUp

        public boolean isSynchronyUp()
        Description copied from interface: SynchronyMonitor
        Determines if the Synchrony that Confluence uses to connect to is currently running or not.
        Specified by:
        isSynchronyUp in interface SynchronyMonitor
        true iff Synchrony is running and responding to requests.
      • pollHeartbeat

        public io.atlassian.util.concurrent.Promise<Boolean> pollHeartbeat()
        Description copied from interface: SynchronyMonitor
        Ping the Synchrony heartbeat rest endpoint, until the result is a 200 OK or a timeout is reached.
        Specified by:
        pollHeartbeat in interface SynchronyMonitor
        a Promise with value true iff Synchrony responds with a successful heartbeat within the timeout.
      • cancelHeartbeat

        public void cancelHeartbeat()
        Description copied from interface: SynchronyMonitor
        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.
        Specified by:
        cancelHeartbeat in interface SynchronyMonitor