public abstract class ADaemonHandler extends Object implements IDaemonHandler
Daemon| Modifier and Type | Class and Description |
|---|---|
static class |
ADaemonHandler.Context |
IDaemonHandler.IContext| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
Logger.
|
| Constructor and Description |
|---|
ADaemonHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRequestHook()
After every request this method is called.
|
PongIVO |
alive(PingIVO req) |
void |
beforeRequestHook()
For every request this method is called.
|
void |
exceptionHook(RuntimeException e)
If a RuntimeException occurs during the request you have the chance to handle it here.
|
IDaemonHandler.IContext |
getContext() |
public IDaemonHandler.IContext getContext()
getContext in interface IDaemonHandlerpublic void exceptionHook(RuntimeException e) throws DaemonError
IDaemonHandlerexceptionHook in interface IDaemonHandlere - RuntimeExceptionDaemonError - DaemonErrorpublic void beforeRequestHook()
IDaemonHandlerbeforeRequestHook in interface IDaemonHandlerpublic void afterRequestHook()
IDaemonHandlerafterRequestHook in interface IDaemonHandlerCopyright © 2016 Taimos GmbH. All rights reserved.