public abstract class ErrorHandlingSettingsImpl extends Object implements ErrorHandlingSettings
Constructor and Description |
---|
ErrorHandlingSettingsImpl()
Instantiates a new error handling settings impl.
|
ErrorHandlingSettingsImpl(int retryCount,
int timeout,
Action action)
Instantiates a new error handling settings impl.
|
Modifier and Type | Method and Description |
---|---|
Action |
getAction()
Gets the action.
|
int |
getMaxRetries()
Gets the max retries.
|
int |
getTimeout()
Gets the timeout.
|
void |
setAction(Action action)
Sets the action.
|
void |
setMaxRetries(int retryCount)
Sets the max retries.
|
void |
setTimeout(int timeout)
Sets the timeout.
|
public ErrorHandlingSettingsImpl()
public ErrorHandlingSettingsImpl(int retryCount, int timeout, Action action)
retryCount
- the retry counttimeout
- the timeoutaction
- the actionpublic void setMaxRetries(int retryCount)
ErrorHandlingSettings
setMaxRetries
in interface ErrorHandlingSettings
retryCount
- the new max retriespublic int getMaxRetries()
ErrorHandlingSettings
getMaxRetries
in interface ErrorHandlingSettings
public void setTimeout(int timeout)
ErrorHandlingSettings
setTimeout
in interface ErrorHandlingSettings
timeout
- the new timeoutpublic int getTimeout()
ErrorHandlingSettings
getTimeout
in interface ErrorHandlingSettings
public void setAction(Action action)
ErrorHandlingSettings
setAction
in interface ErrorHandlingSettings
action
- the new actionpublic Action getAction()
ErrorHandlingSettings
getAction
in interface ErrorHandlingSettings
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.