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:
- Serializable
- Direct Known Subclasses:
- ConnectionAbortedException, HostDownException, MaxConnsPerHostReachedException, NoAvailableHostsException, OperationException, OperationTimeoutException, PoolTimeoutException, ThriftStateException, ThrottledException, TimeoutException, TokenRangeOfflineException, TransportException, WalException
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
ConnectionException
public ConnectionException(String message)
ConnectionException
public ConnectionException(Throwable t)
ConnectionException
public ConnectionException(String message,
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(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.