public interface Event
| Modifier and Type | Method and Description |
|---|---|
void |
fail()
Indicates that the event has completed with an error.
|
void |
fail(Map<String,Object> properties)
Indicates that the event has completed with an error.
|
void |
failIfNotCompleted()
Indicates that the event has experienced an error unless
succeed
has already been called (useful for calling in finally blocks). |
void |
failIfNotCompleted(Map<String,Object> properties)
Indicates that the event has experienced an error unless
succeed
has already been called (useful for calling in finally blocks). |
String |
getTopic() |
void |
succeed()
Indicates that the event has completed successfully.
|
void |
succeed(Map<String,Object> properties)
Indicates that the event has completed successfully.
|
String getTopic()
void succeed()
IllegalStateException - if succeed or fail have
already been calledvoid succeed(Map<String,Object> properties)
properties - Any properties associated with the successful
completion of the eventIllegalStateException - if succeed or fail have
already been calledvoid fail()
IllegalStateException - if succeed or fail have
already been calledvoid fail(Map<String,Object> properties)
properties - Any properties associated with the failure of the eventIllegalStateException - if succeed or fail have
already been calledvoid failIfNotCompleted()
succeed
has already been called (useful for calling in finally blocks).Copyright © 2013, Oracle and/or its affiliates. All rights reserved.