Package org.projectbarbel.histo.event
Class EventType.AbstractBarbelEvent
- java.lang.Object
-
- org.projectbarbel.histo.event.EventType.AbstractBarbelEvent
-
- All Implemented Interfaces:
HistoEvent
- Direct Known Subclasses:
EventType.AcquireLockEvent
,EventType.BarbelInitializedEvent
,EventType.InactivationEvent
,EventType.InitializeJournalEvent
,EventType.InsertBitemporalEvent
,EventType.OnLoadOperationEvent
,EventType.ReleaseLockEvent
,EventType.RetrieveDataEvent
,EventType.UnLoadOperationEvent
,EventType.UpdateFinishedEvent
- Enclosing class:
- EventType
public abstract static class EventType.AbstractBarbelEvent extends Object implements HistoEvent
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Object,Object>
eventContext
-
Constructor Summary
Constructors Constructor Description AbstractBarbelEvent(EventType eventType, Map<Object,Object> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failed(Throwable e)
Object
getDocumentId()
Map<Object,Object>
getEventContext()
EventType
getEventType()
protected BarbelMode
getMode()
Throwable
getRootCause()
void
setMode(BarbelMode mode)
boolean
succeeded()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projectbarbel.histo.event.HistoEvent
derivedFields, postAsynchronous, postBothWay, postSynchronous, with, with
-
-
-
-
Method Detail
-
getMode
protected BarbelMode getMode()
-
setMode
public void setMode(BarbelMode mode)
- Specified by:
setMode
in interfaceHistoEvent
-
getRootCause
public Throwable getRootCause()
- Specified by:
getRootCause
in interfaceHistoEvent
-
succeeded
public boolean succeeded()
- Specified by:
succeeded
in interfaceHistoEvent
-
failed
public void failed(Throwable e)
- Specified by:
failed
in interfaceHistoEvent
-
getEventContext
public Map<Object,Object> getEventContext()
- Specified by:
getEventContext
in interfaceHistoEvent
-
getEventType
public EventType getEventType()
- Specified by:
getEventType
in interfaceHistoEvent
-
getDocumentId
public Object getDocumentId()
- Specified by:
getDocumentId
in interfaceHistoEvent
-
-