public class RelationalEventWithId extends ApplicationEvent implements WithId
SimpleRelationalEvent guaranteed to have an identifier.source| Constructor and Description |
|---|
RelationalEventWithId(Identifier.Specified id,
Optional<Object> entity,
AggregateChange change) |
| Modifier and Type | Method and Description |
|---|---|
AggregateChange |
getChange() |
Identifier.Specified |
getId()
The identifier of the aggregate root, triggering this event.
|
Optional<Object> |
getOptionalEntity()
Returns the aggregate root the event was triggered for.
|
getTimestampgetSource, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOptionalEntitypublic RelationalEventWithId(Identifier.Specified id, Optional<Object> entity, @Nullable AggregateChange change)
public Identifier.Specified getId()
RelationalEventgetId in interface RelationalEventgetId in interface WithIdIdentifier. Guaranteed to be not null.public Optional<Object> getOptionalEntity()
RelationalEventgetOptionalEntity in interface RelationalEventnull.public AggregateChange getChange()
Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.