public static class ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler extends Object implements ConnectionPoolErrorHandler
ConnectionPoolErrorHandler.CountingErrorHandler, ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler
Constructor and Description |
---|
SimpleConnectionPoolErrorHandler() |
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 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.