Package com.pnfsoftware.jeb.core.events
Class JebEvent
java.lang.Object
com.pnfsoftware.jeb.core.events.JebEvent
- All Implemented Interfaces:
IEvent
The standard JEB engines implementation of the
IEvent interface. Plugins should use this
class.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetData()Get the event payload.Get the event source.longGet the event creation timestamp.getType()Get the JEB-specific event type.inthashCode()voidsetStopPropagation(boolean stopPropagation) Request that propagation stop after the current listener is notified.booleanDetermine whether propagation should stop after the current listener.toString()
-
Field Details
-
ccnt
-
-
Constructor Details
-
JebEvent
Create an event without attached data and a default source.- Parameters:
type- event type
-
JebEvent
Create an event with a default event source.- Parameters:
type- event typedata- event data
-
JebEvent
Create an event.- Parameters:
type- event typedata- event datasource- event source, ornullto defer source assignment
-
-
Method Details
-
getType
Get the JEB-specific event type. -
getData
Get the event payload. -
getSource
Get the event source. -
getTimestamp
public long getTimestamp()Get the event creation timestamp.- Specified by:
getTimestampin interfaceIEvent- Returns:
- the creation time in milliseconds since the epoch
-
shouldStopPropagation
public boolean shouldStopPropagation()Determine whether propagation should stop after the current listener.- Specified by:
shouldStopPropagationin interfaceIEvent- Returns:
trueif propagation should stop
-
setStopPropagation
public void setStopPropagation(boolean stopPropagation) Request that propagation stop after the current listener is notified.- Parameters:
stopPropagation-trueto stop propagation
-
toString
-
hashCode
public int hashCode() -
equals
-