Interface ConnectionPoolErrorHandler
- All Known Subinterfaces:
ConnectionPoolManager
- All Known Implementing Classes:
ConnectionPoolErrorHandler.CountingErrorHandler,ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler,LoadBalancingProxyClient.Host
public interface ConnectionPoolErrorHandler
The connection pool error handler is intended to be used per node and will therefore be shared across I/O threads.
- Author:
- Emanuel Muckenhuber
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classCounting error handler, this only propagates the state to the delegate handler after reaching a given limit.static class -
Method Summary
Modifier and TypeMethodDescriptionbooleanClear the connection errors.booleanHandle a connection error.booleanCheck whether pool is available
-
Method Details
-
isAvailable
boolean isAvailable()Check whether pool is available- Returns:
- whether the pool is available
-
handleError
boolean handleError()Handle a connection error.- Returns:
trueif the pool is still available,falseotherwise
-
clearError
boolean clearError()Clear the connection errors.- Returns:
trueif the pool is available again,falseotherwise
-