com.netflix.astyanax.connectionpool.exceptions
Class ConnectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.netflix.astyanax.connectionpool.exceptions.ConnectionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConnectionAbortedException, HostDownException, MaxConnsPerHostReachedException, NoAvailableHostsException, OperationException, OperationTimeoutException, PoolTimeoutException, ThriftStateException, ThrottledException, TimeoutException, TokenRangeOfflineException, TransportException

public abstract class ConnectionException
extends Exception

Connection exception caused by an error in the connection pool or a transport error related to the connection itself. Application errors are derived from OperationException.

Author:
elandau
See Also:
Serialized Form

Constructor Summary
ConnectionException(String message)
           
ConnectionException(String message, Throwable cause)
           
ConnectionException(Throwable t)
           
 
Method Summary
 Host getHost()
           
 long getLatency()
           
 long getLatency(TimeUnit units)
           
 long getLatencyWithPool()
           
 String getMessage()
           
 String getOriginalMessage()
           
 ConnectionException setAttempt(int attemptCount)
           
 ConnectionException setHost(Host host)
           
 ConnectionException setLatency(long latency)
           
 ConnectionException setLatencyWithPool(long latency)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionException

public ConnectionException(String message)

ConnectionException

public ConnectionException(Throwable t)

ConnectionException

public ConnectionException(String message,
                           Throwable cause)
Method Detail

setHost

public ConnectionException setHost(Host host)

getHost

public Host getHost()

setLatency

public ConnectionException setLatency(long latency)

getLatency

public long getLatency()

getLatency

public long getLatency(TimeUnit units)

setLatencyWithPool

public ConnectionException setLatencyWithPool(long latency)

getLatencyWithPool

public long getLatencyWithPool()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getOriginalMessage

public String getOriginalMessage()

setAttempt

public ConnectionException setAttempt(int attemptCount)


Copyright © 2012. All Rights Reserved.