public class RetryableProcessProfile extends Object
RetryableProcessProvider.| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_RETRY_INTERVAL
The default
KEY_RETRY_INTERVAL. |
static String |
KEY_COMPONENT
The profile key name of
component process provider class name. |
static String |
KEY_RETRY_COUNT
The profile key name of
getRetryCount(). |
static String |
KEY_RETRY_INTERVAL
The profile key name of
getRetryInterval(). |
static String |
PREFIX_COMPONENT
The profile key prefix of
component process provider configuration. |
| Constructor and Description |
|---|
RetryableProcessProfile(ProcessProvider component,
int retryCount)
Creates a new instance.
|
RetryableProcessProfile(ProcessProvider component,
int retryCount,
long retryInterval)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static RetryableProcessProfile |
convert(ProcessProfile profile)
Converts
ProcessProfile into RetryableProcessProfile. |
ProcessProvider |
getComponent()
Returns the target process provider.
|
int |
getRetryCount()
Returns the max retry count.
|
long |
getRetryInterval()
Returns the retry interval.
|
public static final String KEY_RETRY_COUNT
getRetryCount().public static final String KEY_RETRY_INTERVAL
getRetryInterval().public static final long DEFAULT_RETRY_INTERVAL
KEY_RETRY_INTERVAL.public static final String KEY_COMPONENT
component process provider class name.public static final String PREFIX_COMPONENT
component process provider configuration.public RetryableProcessProfile(ProcessProvider component, int retryCount)
component - the component process provider to be retriedretryCount - the retry countIllegalArgumentException - if some parameters were nullpublic RetryableProcessProfile(ProcessProvider component, int retryCount, long retryInterval)
component - the component process provider to be retriedretryCount - the retry countretryInterval - the retry interval (in second)IllegalArgumentException - if some parameters were nullpublic static RetryableProcessProfile convert(ProcessProfile profile) throws IOException
ProcessProfile into RetryableProcessProfile.profile - target profileIOException - if failed to create a component process providerIllegalArgumentException - if profile is not valid, or any parameter is nullpublic ProcessProvider getComponent()
public int getRetryCount()
public long getRetryInterval()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.