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 class
Counting error handler, this only propagates the state to the delegate handler after reaching a given limit.static class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Clear the connection errors.boolean
Handle a connection error.boolean
Check 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:
true
if the pool is still available,false
otherwise
-
clearError
boolean clearError()Clear the connection errors.- Returns:
true
if the pool is available again,false
otherwise
-