|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OperationMonitorInterface
Interface describing how an operation can provide status information to a monitor regarding exceptions that have occurred.
Method Summary | |
---|---|
void |
addThrowable(java.lang.Throwable throwable)
Notify the operation monitor that an exception has occurred. |
java.lang.Throwable[] |
getThrowables()
Gets throwables which describe issues which were encountered during the operation. |
boolean |
hasOperationCompleted()
Whether or not the operation has completed its execution. |
boolean |
isOK()
Determines whether or not the monitored operation completed without encountering any issues. |
void |
setOperationCompleted()
Specifies that the operation has completed its exeuction. |
Method Detail |
---|
boolean hasOperationCompleted()
true
if the operation has completed.void setOperationCompleted()
boolean isOK()
true
if no issues were encountered executing
the operation or false
if a problem was encountered.
If the return value is false
use
getThrowables()
to determine why the operation failed.void addThrowable(java.lang.Throwable throwable)
throwable
- A Throwable
encountered while executing the operation.java.lang.Throwable[] getThrowables()
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |