Class AbstractCotPushNotificationEvent<B extends es.kukenan.smartfi.events.common.AbstractEventBody>
java.lang.Object
es.kukenan.smartfi.events.common.AbstractEvent<B>
es.kukenan.smartfi.microservice.eventsender.events.AbstractCotPushNotificationEvent<B>
- Type Parameters:
B- the event body type.
- All Implemented Interfaces:
es.kukenan.smartfi.events.common.Event
- Direct Known Subclasses:
CotPushNotificationEvent
public abstract class AbstractCotPushNotificationEvent<B extends es.kukenan.smartfi.events.common.AbstractEventBody>
extends es.kukenan.smartfi.events.common.AbstractEvent<B>
Class that describes the contract of the events generated by the event-sender micro-service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant value for the context field, unique for event-sender micro-service context.Fields inherited from class es.kukenan.smartfi.events.common.AbstractEvent
UTC -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCotPushNotificationEvent(String typeId, String version) Minimal constructor.AbstractCotPushNotificationEvent(String requestId, String companyId, String origin, String typeId, String operationType, String messageId, String version, Long creationTs, String channel, String session, String manager, String userId, B body) State constructor. -
Method Summary
Methods inherited from class es.kukenan.smartfi.events.common.AbstractEvent
canEqual, equals, getBody, getChannel, getCompanyId, getContext, getCreationDate, getCreationTs, getManager, getMessageId, getOperationType, getOrigin, getRequestId, getSession, getTypeId, getUserId, getVersion, hashCode, setBody, setChannel, setCompanyId, setCreationDate, setCreationTs, setManager, setMessageId, setOperationType, setOrigin, setRequestId, setSession, setUserId, setVersion, toString
-
Field Details
-
CONTEXT
Constant value for the context field, unique for event-sender micro-service context.- See Also:
-
-
Constructor Details
-
AbstractCotPushNotificationEvent
Minimal constructor.- Parameters:
typeId- event type (the pair origin-typeId is the unique identifier of the event type in the platform).version- event version.
-
AbstractCotPushNotificationEvent
public AbstractCotPushNotificationEvent(String requestId, String companyId, String origin, String typeId, String operationType, String messageId, String version, Long creationTs, String channel, String session, String manager, String userId, B body) State constructor.- Parameters:
requestId- the request identifier (transaction).companyId- company/bank identifier (multi-tenant context, BC/BF).origin- service that have produced this event.typeId- event type (the pair origin-typeId is the unique identifier of the event type in the platform).operationType- operation type (some kind of event sub-type).messageId- arbitrary application-specific identifier for the message/event.version- event version.creationTs- event creation timestamp (milliseconds from EPOCH).channel- event channel.session- session identifier.manager- manager that generate event.userId- user identifier.body- event body.
-