| Modifier and Type | Class and Description |
|---|---|
| public static class | ConnectionPoolErrorHandler.
Counting error handler, this only propagates the state to the delegate handler after reaching a given limit. |
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the pool is available again, false otherwiseClear the connection errors. |
| public boolean | Returns: true if the pool is still available, false otherwiseHandle a connection error. |
| public boolean |
| clearError | back to summary |
|---|---|
| public boolean clearError() Clear the connection errors.
| |
| handleError | back to summary |
|---|---|
| public boolean handleError() Handle a connection error.
| |
| isAvailable | back to summary |
|---|---|
| public boolean isAvailable() Check whether pool is available
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final ConnectionPoolErrorHandler | |
| private final int | |
| private final long | |
| private final int | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CountingErrorHandler(int errorCount, int successCount, long interval, ConnectionPoolErrorHandler delegate)
|
| Modifier and Type | Method and Description |
|---|---|
| public synchronized boolean | clearError()
Implements io. Clear the connection errors. |
| public synchronized boolean | handleError()
Implements io. Handle a connection error. |
| public boolean | isAvailable()
Implements io. Check whether pool is available |
| count | back to summary |
|---|---|
| private int count | |
| delegate | back to summary |
|---|---|
| private final ConnectionPoolErrorHandler delegate | |
| errorCount | back to summary |
|---|---|
| private final int errorCount | |
| interval | back to summary |
|---|---|
| private final long interval | |
| successCount | back to summary |
|---|---|
| private final int successCount | |
| timeout | back to summary |
|---|---|
| private long timeout | |
| CountingErrorHandler | back to summary |
|---|---|
| public CountingErrorHandler(int errorCount, int successCount, long interval) | |
| CountingErrorHandler | back to summary |
|---|---|
| public CountingErrorHandler(int errorCount, int successCount, long interval, ConnectionPoolErrorHandler delegate) | |
| clearError | back to summary |
|---|---|
| public synchronized boolean clearError() Implements io. Doc from io. Clear the connection errors.
| |
| handleError | back to summary |
|---|---|
| public synchronized boolean handleError() Implements io. Doc from io. Handle a connection error.
| |
| isAvailable | back to summary |
|---|---|
| public boolean isAvailable() Implements io. Doc from io. Check whether pool is available
| |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | clearError()
Implements io. Clear the connection errors. |
| public boolean | handleError()
Implements io. Handle a connection error. |
| public boolean | isAvailable()
Implements io. Check whether pool is available |
| problem | back to summary |
|---|---|
| private volatile boolean problem | |
| SimpleConnectionPoolErrorHandler | back to summary |
|---|---|
| public SimpleConnectionPoolErrorHandler() | |
| clearError | back to summary |
|---|---|
| public boolean clearError() Implements io. Doc from io. Clear the connection errors.
| |
| handleError | back to summary |
|---|---|
| public boolean handleError() Implements io. Doc from io. Handle a connection error.
| |
| isAvailable | back to summary |
|---|---|
| public boolean isAvailable() Implements io. Doc from io. Check whether pool is available
| |