com.netflix.astyanax.connectionpool.exceptions
Class ConnectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- HostDownException, InterruptedOperationException, MaxConnsPerHostReachedException, NoAvailableHostsException, OperationException, OperationTimeoutException, PoolTimeoutException, ThriftStateException, ThrottledException, TimeoutException, TokenRangeOfflineException, TransportException, WalException
public abstract class ConnectionException
- extends java.lang.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.
- See Also:
- Serialized Form
| 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 |
ConnectionException
public ConnectionException(java.lang.String message)
ConnectionException
public ConnectionException(java.lang.Throwable t)
ConnectionException
public ConnectionException(java.lang.String message,
java.lang.Throwable cause)
setHost
public ConnectionException setHost(Host host)
getHost
public Host getHost()
setLatency
public ConnectionException setLatency(long latency)
getLatency
public long getLatency()
getLatency
public long getLatency(java.util.concurrent.TimeUnit units)
setLatencyWithPool
public ConnectionException setLatencyWithPool(long latency)
getLatencyWithPool
public long getLatencyWithPool()
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage in class java.lang.Throwable
getOriginalMessage
public java.lang.String getOriginalMessage()
setAttempt
public ConnectionException setAttempt(int attemptCount)