Interface ConnectionPoolErrorHandler
-
- All Known Subinterfaces:
ConnectionPoolManager
- All Known Implementing Classes:
ConnectionPoolErrorHandler.CountingErrorHandler,ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler,LoadBalancingProxyClient.Host
public interface ConnectionPoolErrorHandlerThe 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 Classes Modifier and Type Interface Description static classConnectionPoolErrorHandler.CountingErrorHandlerCounting error handler, this only propagates the state to the delegate handler after reaching a given limit.static classConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanclearError()Clear the connection errors.booleanhandleError()Handle a connection error.booleanisAvailable()Check whether pool is available
-
-
-
Method Detail
-
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
-
-