public class BaseEvent
extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
correlationId |
protected String |
entityId |
protected Long |
etag |
protected String |
id |
protected BaseEventLinks |
links |
protected String |
timestamp |
protected String |
typeId |
Constructor and Description |
---|
BaseEvent() |
Modifier and Type | Method and Description |
---|---|
BaseEvent |
correlationId(String correlationId)
Returns a BaseEvent instance initialized with correlationId
|
BaseEvent |
entityId(String entityId)
Returns a BaseEvent instance initialized with entityId
|
boolean |
equals(Object o) |
String |
getCorrelationId()
Correlation id of the event (filterable, not updatable)
|
String |
getEntityId()
Entity attached to the event (filterable, not updatable)
|
Long |
getEtag()
Incremental counter for optimistic concurrency control
|
String |
getId()
Unique identifier of the event
|
BaseEventLinks |
getLinks()
Get links
|
String |
getTimestamp()
Timestamp attached to the event in UTC format (filterable, not updatable)
|
String |
getTypeId()
Unique identifier of the event type (filterable, not updatable)
|
int |
hashCode() |
BaseEvent |
links(BaseEventLinks links)
Returns a BaseEvent instance initialized with links
|
void |
setCorrelationId(String correlationId) |
void |
setEntityId(String entityId) |
void |
setEtag(Long etag) |
void |
setId(String id) |
void |
setLinks(BaseEventLinks links) |
void |
setTimestamp(String timestamp) |
void |
setTypeId(String typeId) |
BaseEvent |
timestamp(String timestamp)
Returns a BaseEvent instance initialized with timestamp
|
protected String |
toIndentedString(Object o) |
String |
toString() |
BaseEvent |
typeId(String typeId)
Returns a BaseEvent instance initialized with typeId
|
protected String id
protected String typeId
protected String correlationId
protected String timestamp
protected String entityId
protected Long etag
protected BaseEventLinks links
public String getId()
public void setId(String id)
public BaseEvent typeId(String typeId)
typeId
- typeId to be associated with EventTypeLinkspublic String getTypeId()
public void setTypeId(String typeId)
public BaseEvent correlationId(String correlationId)
correlationId
- correlationId to be associated with EventTypeLinkspublic String getCorrelationId()
public void setCorrelationId(String correlationId)
public BaseEvent timestamp(String timestamp)
timestamp
- timestamp to be associated with EventTypeLinkspublic String getTimestamp()
public void setTimestamp(String timestamp)
public BaseEvent entityId(String entityId)
entityId
- entityId to be associated with EventTypeLinkspublic String getEntityId()
public void setEntityId(String entityId)
public Long getEtag()
public void setEtag(Long etag)
public BaseEvent links(BaseEventLinks links)
links
- instance of BaseEventLinks to be associated with EventTypeLinkspublic BaseEventLinks getLinks()
public void setLinks(BaseEventLinks links)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
protected String toIndentedString(Object o)