public abstract class AbstractStabilityChecker extends Object implements StabilityChecker
StabilityChecker.| Modifier and Type | Field and Description |
|---|---|
static String |
STABILITY_ATTEMPTS
The system property to configure the default number of attempt before giving up.
|
static String |
STABILITY_GRACE
The system property to configure the default grace time in milliseconds.
|
static String |
TIME_FACTOR
The time factory system property.
|
| Constructor and Description |
|---|
AbstractStabilityChecker() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getDefaultGracePeriodInMillis()
Retrieves the default grace period (in millis).
|
static int |
getDefaultNumberOfAttempts()
Retrieves the default number of attempts before declaring that the stability cannot be reached.
|
static int |
getTimeFactor()
Retrieves the current time factor if set.
|
static void |
grace()
Block the caller thread for the default grace period.
|
static void |
grace(long amount,
TimeUnit unit)
Waits for the given time period.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheck, getName, getPrioritypublic static final String TIME_FACTOR
public static final String STABILITY_GRACE
public static final String STABILITY_ATTEMPTS
public static int getTimeFactor()
public static long getDefaultGracePeriodInMillis()
public static int getDefaultNumberOfAttempts()
public static void grace()
public static void grace(long amount,
TimeUnit unit)
amount - the amountunit - the unitCopyright © 2009–2015 OW2 Chameleon. All rights reserved.