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 |
---|---|
SbcResource<?> |
neededResource() |
boolean |
needsResource() |
static SbcEvent.SbcEventHandlerResult |
needsResource(SbcResource<?> neededResource)
Factory method to get the result object.
|
public static final SbcEvent.SbcEventHandlerResult SUCCESS
protected SbcEventHandlerResult()
SUCCESS
value.public static SbcEvent.SbcEventHandlerResult needsResource(SbcResource<?> neededResource)
neededResource
- public boolean needsResource()
public SbcResource<?> neededResource()