public static class ConnectionPoolErrorHandler.CountingErrorHandler extends Object implements ConnectionPoolErrorHandler
ConnectionPoolErrorHandler.CountingErrorHandler, ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler
Constructor and Description |
---|
CountingErrorHandler(int errorCount,
int successCount,
long interval) |
CountingErrorHandler(int errorCount,
int successCount,
long interval,
ConnectionPoolErrorHandler delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
clearError()
Clear the connection errors.
|
boolean |
handleError()
Handle a connection error.
|
boolean |
isAvailable()
Check whether pool is available
|
public CountingErrorHandler(int errorCount, int successCount, long interval)
public CountingErrorHandler(int errorCount, int successCount, long interval, ConnectionPoolErrorHandler delegate)
public boolean isAvailable()
ConnectionPoolErrorHandler
isAvailable
in interface ConnectionPoolErrorHandler
public boolean handleError()
ConnectionPoolErrorHandler
handleError
in interface ConnectionPoolErrorHandler
true
if the pool is still available, false
otherwisepublic boolean clearError()
ConnectionPoolErrorHandler
clearError
in interface ConnectionPoolErrorHandler
true
if the pool is available again, false
otherwiseCopyright © 2020 JBoss by Red Hat. All rights reserved.