|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.transport.http.server.DefaultConnectionListenerFailureHandler
public class DefaultConnectionListenerFailureHandler
Default hander for failures in connection listener IOProcessors. Supports configuration of number retries, delay per retry, and uptime interval considered a success (resets number retries to zero).
| Field Summary | |
|---|---|
protected int |
maxRetries
|
protected int |
retryDelay
|
protected int |
successInterval
|
| Constructor Summary | |
|---|---|
DefaultConnectionListenerFailureHandler()
Create a new DefaultConnectionListenerFailureHandler with default settings. |
|
DefaultConnectionListenerFailureHandler(int retryDelay,
int successInterval,
int maxRetries)
Create a new DefaultConnectionListenerFailureHandler |
|
| Method Summary | |
|---|---|
boolean |
failed(IOProcessor connectionListener,
java.lang.Throwable cause)
Default behavior is to log a warning and attempt retry per constructor config, eventually failing with a logged error and notification. |
void |
notifyAbnormalTermination(IOProcessor connectionListener,
java.lang.String message,
java.lang.Throwable cause)
Default bevarior is to log the error. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int retryDelay
protected int successInterval
protected int maxRetries
| Constructor Detail |
|---|
public DefaultConnectionListenerFailureHandler()
public DefaultConnectionListenerFailureHandler(int retryDelay,
int successInterval,
int maxRetries)
retryDelay - millis to wait before retryingsuccessInterval - millis after which an initial or retry attempt will be deemed a success, resetting retry count to 0maxRetries - maximum number of retries allowed without a success, after which the listener will terminate| Method Detail |
|---|
public boolean failed(IOProcessor connectionListener,
java.lang.Throwable cause)
failed in interface ConnectionListenerFailureHandlerconnectionListener - the associated connection listenercause - cause of failure
public void notifyAbnormalTermination(IOProcessor connectionListener,
java.lang.String message,
java.lang.Throwable cause)
notifyAbnormalTermination in interface ConnectionListenerFailureHandlerconnectionListener - the associated connection listenermessage - explanation of terminationcause - last exception that is causing termination
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||