|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.cluster.RepeatableTaskRunner
PollingChangeTracker
@Deprecated public class RepeatableTaskRunner
Runs a task at set intervals. Throws an AssertionFailedError if the
task does not return the desired result within the timeout period.
| Constructor Summary | |
|---|---|
RepeatableTaskRunner(long intervalMillis,
long timeoutMillis)
Deprecated. |
|
| Method Summary | ||
|---|---|---|
void |
assertFalse(java.lang.String message,
RepeatableTask task)
Deprecated. use assertThat(String, java.util.concurrent.Callable, org.hamcrest.Matcher) instead |
|
|
assertThat(java.util.concurrent.Callable<V> task,
org.hamcrest.Matcher<V> matcher)
Deprecated. |
|
|
assertThat(java.lang.String message,
java.util.concurrent.Callable<V> task,
org.hamcrest.Matcher<V> matcher)
Deprecated. |
|
void |
assertTrue(java.lang.String message,
RepeatableTask task)
Deprecated. use assertThat(String, java.util.concurrent.Callable, org.hamcrest.Matcher) instead |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepeatableTaskRunner(long intervalMillis,
long timeoutMillis)
intervalMillis - the interval between successive runs of the tasktimeoutMillis - the total amount of time from the start of running a task until the
AssertionFailedError is thrown.| Method Detail |
|---|
@Deprecated
public void assertTrue(java.lang.String message,
RepeatableTask task)
throws java.lang.Exception
assertThat(String, java.util.concurrent.Callable, org.hamcrest.Matcher) instead
AssertionFailedError if the task doesn't
return true within the timeout provided.
message - the failure message used if the task doesn't return true within the timeouttask - a Callable which returns a Boolean
junit.framework.AssertionFailedError - if the task does not return true before the timeout expires
java.lang.Exception - if the task itself throws an exception
@Deprecated
public void assertFalse(java.lang.String message,
RepeatableTask task)
throws java.lang.Exception
assertThat(String, java.util.concurrent.Callable, org.hamcrest.Matcher) instead
AssertionFailedError if the task doesn't
return false within the timeout provided.
message - the failure message used if the task doesn't return false within the timeouttask - a Callable which returns a Boolean
junit.framework.AssertionFailedError - if the task does not return false before the timeout expires
java.lang.Exception - if the task itself throws an exception
public <V> void assertThat(java.util.concurrent.Callable<V> task,
org.hamcrest.Matcher<V> matcher)
throws java.lang.Exception
java.lang.Exception
public <V> void assertThat(java.lang.String message,
java.util.concurrent.Callable<V> task,
org.hamcrest.Matcher<V> matcher)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||