com.atlassian.tunnel.tunnel.client
Class DefaultTunnelStatusTracker

java.lang.Object
  extended by com.atlassian.tunnel.tunnel.client.DefaultTunnelStatusTracker
All Implemented Interfaces:
TunnelStatusTracker

public class DefaultTunnelStatusTracker
extends Object
implements TunnelStatusTracker


Field Summary
protected  boolean atLeastOneConnectionWasSuccessful
           
protected  int consecutiveFailures
           
protected  String tunnelName
           
 
Constructor Summary
DefaultTunnelStatusTracker()
           
 
Method Summary
 void finish()
           
 void onAttempt()
           
 void onFailure()
           
 void onFailure(Throwable t)
           
 void onStreamEnd()
           
 void onSuccess()
           
 void setTunnelName(String tunnelName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

consecutiveFailures

protected int consecutiveFailures

tunnelName

protected String tunnelName

atLeastOneConnectionWasSuccessful

protected boolean atLeastOneConnectionWasSuccessful
Constructor Detail

DefaultTunnelStatusTracker

public DefaultTunnelStatusTracker()
Method Detail

onAttempt

public void onAttempt()
Specified by:
onAttempt in interface TunnelStatusTracker

onStreamEnd

public void onStreamEnd()
Specified by:
onStreamEnd in interface TunnelStatusTracker

onFailure

public void onFailure()
               throws InterruptedException
Specified by:
onFailure in interface TunnelStatusTracker
Throws:
InterruptedException

onFailure

public void onFailure(@Nullable
                      Throwable t)
               throws InterruptedException
Specified by:
onFailure in interface TunnelStatusTracker
Throws:
InterruptedException

setTunnelName

public void setTunnelName(String tunnelName)
Specified by:
setTunnelName in interface TunnelStatusTracker

onSuccess

public void onSuccess()
Specified by:
onSuccess in interface TunnelStatusTracker

finish

public void finish()
Specified by:
finish in interface TunnelStatusTracker


Copyright © 2015 Atlassian. All rights reserved.