protected static class SbcEvent.SbcEventHandlerResult extends Object
SbcEvent.respondToClient(ApiError, SbcEventHandlerResult)
.
Return SUCCESS
when an event handler runs to completion,
or new SbcEventHandlerResult(SbcResource)
when a particular SbcResource
is
needed for execution to continue.Modifier and Type | Field and Description |
---|---|
static SbcEvent.SbcEventHandlerResult |
SUCCESS |
Modifier | Constructor and Description |
---|---|
protected |
SbcEventHandlerResult()
The "event is completed" result.
|
Modifier and Type | Method and Description |
---|---|
List<SbcEvent> |
followUpEvents() |
SbcResource<?> |
neededResource() |
boolean |
needsResource() |
static SbcEvent.SbcEventHandlerResult |
needsResource(SbcResource<?> neededResource)
Factory method to get the result object.
|
static SbcEvent.SbcEventHandlerResult |
withFollowUpEvents(List<SbcEvent> followUpEvents)
Factory method to get the result object with follow up events.
|
public static final SbcEvent.SbcEventHandlerResult SUCCESS
protected SbcEventHandlerResult()
SUCCESS
value.public static SbcEvent.SbcEventHandlerResult needsResource(SbcResource<?> neededResource)
neededResource
- public static SbcEvent.SbcEventHandlerResult withFollowUpEvents(List<SbcEvent> followUpEvents)
followUpEvents()
for more informationpublic boolean needsResource()
public SbcResource<?> neededResource()
public List<SbcEvent> followUpEvents()
SbcEvent.SbcEventHandlerResult
will be processed before said follow-up events.