Class TerminateOnTimeoutTunnelStatusTracker

  • All Implemented Interfaces:
    com.atlassian.tunnel.tunnel.client.TunnelStatusTracker

    public class TerminateOnTimeoutTunnelStatusTracker
    extends com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
    • Constructor Detail

      • TerminateOnTimeoutTunnelStatusTracker

        public TerminateOnTimeoutTunnelStatusTracker​(com.atlassian.aws.ec2.RemoteEC2Instance ec2Instance,
                                                     int timeout,
                                                     TimeUnit timeUnit)
    • Method Detail

      • onAttempt

        public void onAttempt()
        Specified by:
        onAttempt in interface com.atlassian.tunnel.tunnel.client.TunnelStatusTracker
        Overrides:
        onAttempt in class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
      • onFailure

        public void onFailure​(@Nullable
                              @Nullable Throwable throwable)
                       throws InterruptedException
        Specified by:
        onFailure in interface com.atlassian.tunnel.tunnel.client.TunnelStatusTracker
        Overrides:
        onFailure in class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
        Throws:
        InterruptedException
      • onSuccess

        public void onSuccess()
        Specified by:
        onSuccess in interface com.atlassian.tunnel.tunnel.client.TunnelStatusTracker
        Overrides:
        onSuccess in class com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker