public interface KernelEventHandler
Modifier and Type | Interface and Description |
---|---|
static class |
KernelEventHandler.ExecutionOrder
Represents the order of execution between two event handlers, if one
handler should be executed
KernelEventHandler.ExecutionOrder.BEFORE ,
KernelEventHandler.ExecutionOrder.AFTER another handler, or if it
KernelEventHandler.ExecutionOrder.DOESNT_MATTER . |
Modifier and Type | Method and Description |
---|---|
void |
beforeShutdown()
This method is invoked during the shutdown process of a Neo4j Graph
Database.
|
Object |
getResource()
Returns the resource associated with this event handler, or
null
if no specific resource is associated with this handler or if it isn't
desirable to expose it. |
void |
kernelPanic(ErrorState error)
This is invoked when the Neo4j Graph Database enters a state from which
it cannot continue.
|
KernelEventHandler.ExecutionOrder |
orderComparedTo(KernelEventHandler other)
Gives a hint about when to execute this event handler, compared to other
handlers.
|
void beforeShutdown()
GraphDatabaseService
is still
in an operating state, after the processing of this event has terminated
the Neo4j Graph Database will terminate. This event can be used to shut
down other services that depend on the GraphDatabaseService
.void kernelPanic(ErrorState error)
error
- an object describing the state that the
GraphDatabaseService
failed to recover from.Object getResource()
null
if no specific resource is associated with this handler or if it isn't
desirable to expose it. It can be used to aid in the decision process
of in which order to execute the handlers, see
orderComparedTo(KernelEventHandler)
.null
.KernelEventHandler.ExecutionOrder orderComparedTo(KernelEventHandler other)
other
then
KernelEventHandler.ExecutionOrder.BEFORE
should be returned. If this handler must be
executed after other
then KernelEventHandler.ExecutionOrder.AFTER
should be
returned. If it doesn't matter KernelEventHandler.ExecutionOrder.DOESNT_MATTER
should be returned.other
- the other event handler to compare to.other
.Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.