Class Event
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
public abstract class Event
extends Object
implements com.github.philippheuer.events4j.api.domain.IEvent
Used to represent an event.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanUnique event idEvent fired atcom.github.philippheuer.events4j.api.service.IServiceMediatorHolds a reference to the ServiceMediator to access 3rd party servicesinthashCode()voidsetEventId(String eventId) Unique event idvoidsetFiredAt(Calendar calendar) voidsetFiredAtInstant(Instant firedAtInstant) Event fired atvoidsetServiceMediator(com.github.philippheuer.events4j.api.service.IServiceMediator serviceMediator) Holds a reference to the ServiceMediator to access 3rd party servicestoString()
-
Constructor Details
-
Event
public Event()Constructor -
Event
Constructor- Parameters:
eventId- Unique event idfiredAt- Timestamp of the event firing
-
-
Method Details
-
getFiredAt
- Specified by:
getFiredAtin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
setFiredAt
- Specified by:
setFiredAtin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
getEventId
Unique event id- Specified by:
getEventIdin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
getFiredAtInstant
Event fired at- Specified by:
getFiredAtInstantin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
getServiceMediator
public com.github.philippheuer.events4j.api.service.IServiceMediator getServiceMediator()Holds a reference to the ServiceMediator to access 3rd party services- Specified by:
getServiceMediatorin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
setEventId
Unique event id- Specified by:
setEventIdin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
setFiredAtInstant
Event fired at- Specified by:
setFiredAtInstantin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
setServiceMediator
public void setServiceMediator(com.github.philippheuer.events4j.api.service.IServiceMediator serviceMediator) Holds a reference to the ServiceMediator to access 3rd party services- Specified by:
setServiceMediatorin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-