public abstract class Callback extends Object
Constructor and Description |
---|
Callback() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasFailed()
Has the callback failed.
|
boolean |
hasTriggered()
Has the callback triggered.
|
void |
setFailed()
Set the failed flag.
|
void |
setTriggered()
Set the triggered flag.
|
void |
waitUntilTriggered()
Wait until the callback has triggered or failed.
|
void |
waitUntilTriggered(long delay)
Wait until the callback has triggered or failed.
|
public final boolean hasTriggered()
public final void setTriggered()
public final boolean hasFailed()
public final void setFailed()
public final void waitUntilTriggered()
public final void waitUntilTriggered(long delay)
delay
- the timeout period in milliseconds.Copyright © 2016 JBoss by Red Hat. All rights reserved.