public abstract class AbstractServerInterceptor extends AbstractInterceptor<ServerEvent>
If the interceptors AbstractInterceptor.intercept(org.adroitlogic.ultraesb.api.interceptor.Event) method
returns false the engine will stop the lifecycle action if applicable, and any further interceptions.
The available server lifecycle annotations are;
OnStartupRequest - on startup request received by the serverOnShutdownRequest - on shutdown request received by the serverOnRestartRequest - on restart request received by the serverOnServerReady - on server ready for processing the messages, i.e. all done and set to goBeforeInitialize - before servers starts to initializeAfterInitialize - after servers finished initializationBeforeStart - before server starts the start actionAfterStart - after server finishes the start actionBeforeStop - before server starts the stop actionAfterStop - after server finishes the stop actionBeforeShutdown - before server starts the to shutdownAfterShutdown - after server finished the shutdownmetrics| Constructor and Description |
|---|
AbstractServerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
onUnhandledException(ServerEvent event,
Exception e)
Invoke on unhandled exceptions to define the default behavior of the error handling in the respective event types
|
intercept, interceptWithMetricsAndErrorHandling, setErrorHandler, setMetricsReporterprotected boolean onUnhandledException(ServerEvent event, Exception e)
AbstractInterceptoronUnhandledException in class AbstractInterceptor<ServerEvent>event - the event being handlede - the exception causing this method to be calledCopyright © 2010–2016 AdroitLogic. All rights reserved.