Package es.kukenan.smartfi.events.common
Class AbstractEvent<B extends AbstractEventBody>
java.lang.Object
es.kukenan.smartfi.events.common.AbstractEvent<B>
- Type Parameters:
B- the type of the event's body attribute.
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
AbstractScheduledEvent
Base class for any platform event.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BEvent body.private StringThe channel that sent event.private @NotBlank StringThe company identifier (multi-tenant context).private final @NotBlank StringThe functional context in which the event was created.private ZonedDateTimeEvent creation timestamp (UTC), ISO_8601 UTC relative date.private LongEvent creation timestamp (UTC), milliseconds from EPOCH.private StringThe manager who sent the event.private @NotBlank StringArbitrary application-specific identifier for the message/event.private StringOptional operation type identifier, some kind of event sub-type.private @NotBlank StringThe service that sent the event.private @NotBlank StringAn unique request (transaction) identifier, UUID format.private StringThe session identifier.private final @NotBlank StringEvent type identifier.private StringThe User-Agent header.private StringThe user identifier.private StringThe user IP Address.static final ZoneOffsetDefault offset to use internally for ANY date and dateTime.private @NotBlank StringEvent version. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEvent(String context, String typeId) Minimal constructor.AbstractEvent(String requestId, String companyId, String origin, String context, String typeId, String operationType, String messageId, String version, Long creationTs, String channel, String session, String manager, String userId, B body) State constructor,creationDateis created fromcreationTs.AbstractEvent(String requestId, String companyId, String origin, String context, String typeId, String operationType, String messageId, String version, Long creationTs, String channel, String session, String manager, String userId, B body, String userIp, String userAgent) State constructor,creationDateis created fromcreationTs. -
Method Summary
-
Field Details
-
UTC
Default offset to use internally for ANY date and dateTime. -
context
The functional context in which the event was created. -
typeId
Event type identifier. -
operationType
Optional operation type identifier, some kind of event sub-type. -
requestId
An unique request (transaction) identifier, UUID format. -
companyId
The company identifier (multi-tenant context). -
origin
The service that sent the event. -
messageId
Arbitrary application-specific identifier for the message/event. -
version
Event version. -
creationTs
Event creation timestamp (UTC), milliseconds from EPOCH. -
creationDate
Event creation timestamp (UTC), ISO_8601 UTC relative date. -
channel
The channel that sent event. -
session
The session identifier. -
manager
The manager who sent the event. -
userId
The user identifier. -
body
Event body. -
userIp
The user IP Address. -
userAgent
The User-Agent header.
-
-
Constructor Details
-
AbstractEvent
Minimal constructor. -
AbstractEvent
public AbstractEvent(String requestId, String companyId, String origin, String context, String typeId, String operationType, String messageId, String version, Long creationTs, String channel, String session, String manager, String userId, B body) State constructor,creationDateis created fromcreationTs. -
AbstractEvent
public AbstractEvent(String requestId, String companyId, String origin, String context, String typeId, String operationType, String messageId, String version, Long creationTs, String channel, String session, String manager, String userId, B body, String userIp, String userAgent) State constructor,creationDateis created fromcreationTs.- Parameters:
requestId-requestIdcompanyId-companyIdorigin-origincontext-contexttypeId-typeIdoperationType-operationTypemessageId-messageIdversion-versioncreationTs-creationTschannel-channelsession-sessionmanager-manageruserId-userIdbody-bodyuserIp-userIpuserAgent-userAgent
-