handleEvent
@Nonnull
protected SbcEvent.SbcEventHandlerResult handleEvent()
The "business logic" of an SbcEvent. This implementation-provided code will be run by the SbcEventQueue
whenever the event is submitted. This method may be executed multiple times for re-execution if it ever waits for
an SbcResource, so any non-SUCCESS returns should be idempotent.
SbcEvents that have waited on a resource may be dropped without being re-executed if SBC is shut down before the resource
is provided.
Event handlers that throw exceptions will have those exceptions logged and will NOT be re-executed.
It is safe to assume that SbcEvents sent to the same SbcEventQueue will be serialized and do not need to worry about
concurrent execution.
- Specified by:
handleEvent
in class SbcEvent
- Returns:
- an SbcEventHandlerResult that indicates if the event completed successfully or needs an SbcResource to complete execution.