Package-level declarations
This package contains classes and interfaces defining entity-oriented API and base functionality.
Types
Link copied to clipboard
public abstract class AbstractEntity<I, S extends EntityState> implements Entity<I, S>, HandlerLifecycle
Abstract base for entities.
Link copied to clipboard
A phase that dispatched a command to the entity in transaction.
Link copied to clipboard
An EventFilter which composes several other filters.
Link copied to clipboard
Default implementation of entity factory which creates entities by invoking constructor which accepts entity ID.
Link copied to clipboard
public abstract class DefaultRecordBasedRepository<I, E extends AbstractEntity<I, S>, S extends EntityState> extends RecordBasedRepository<I, E, S>
Implementation of RecordBasedRepository that manages entities derived from AbstractEntity.
Link copied to clipboard
A server-side object with an identity.
Link copied to clipboard
Base interface for objects that can create entities.
Link copied to clipboard
The lifecycle callbacks of an Entity.
Link copied to clipboard
An implementation of TransactionListener which monitors the transaction flow and triggers the EntityLifecycle.
Link copied to clipboard
public abstract class EntityMessageEndpoint<I, E extends Entity<I, ? extends Object>, M extends SignalEnvelope<? extends Object, ? extends Object, ? extends Object>> extends AbstractMessageEndpoint<I, M>
Abstract base for endpoints handling messages sent to entities.
Link copied to clipboard
The visibility of an entity type.
Link copied to clipboard
An EventFilter which allows any events except for the events of given types.
Link copied to clipboard
public final class EventDispatchingPhase<I, E extends TransactionalEntity<I, ? extends Object, ? extends Object>> extends Phase<I>
A phase that dispatches an event to the entity in transaction.
Link copied to clipboard
public abstract class EventDispatchingRepository<I, E extends AbstractEntity<I, S>, S extends EntityState> extends DefaultRecordBasedRepository<I, E, S> implements EventDispatcher
Abstract base for repositories that deliver events to entities they manage.
Link copied to clipboard
An EventFilter which allows all the events but trims some of their message fields.
Link copied to clipboard
A filter accepting Events posted by a Repository.
Link copied to clipboard
Plays events upon a certain entity.
Link copied to clipboard
public abstract class EventPlayingTransaction<I, E extends TransactionalEntity<I, S, B>, S extends EntityState, B extends ValidatingBuilder<S>> extends Transaction<I, E, S, B>
A transaction that supports event playing.
Link copied to clipboard
Operations common for repositories that can post to EventBus.
Link copied to clipboard
An EventFilter which allows only events of given types.
Link copied to clipboard
A utility class for creating instances of
FieldMask
and processing them against instances of Message.Link copied to clipboard
Marks an Entity that declares columns for lifecycle flags.
Link copied to clipboard
Marks an Entity that declares a Version column.
Link copied to clipboard
Signals that an entity state does not pass validation.
Link copied to clipboard
A copy of recent history of an event-sourced entity.
Link copied to clipboard
public abstract class RecordBasedRepository<I, E extends Entity<I, S>, S extends EntityState> extends Repository<I, E>
The base class for repositories that store entities as records.
Link copied to clipboard
public abstract class Repository<I, E extends Entity<I, ? extends Object>> implements ContextAware, Closeable
Abstract base class for repositories.
Link copied to clipboard
Link copied to clipboard
public abstract class StorageConverter<I, E extends Entity<I, S>, S extends EntityState> implements Serializable
An abstract base for converters of entities into EntityRecord.
Link copied to clipboard
public abstract class Transaction<I, E extends TransactionalEntity<I, S, B>, S extends EntityState, B extends ValidatingBuilder<S>>
The abstract class for the entity transactions.
Link copied to clipboard
public abstract class TransactionalEntity<I, S extends EntityState, B extends ValidatingBuilder<S>> extends AbstractEntity<I, S>
A base for entities, perform transactions events.
Link copied to clipboard
A common contract for the transaction listeners.
Link copied to clipboard
A strategy for incrementing a version of an entity being modified in a transaction.
Link copied to clipboard
Something with LifecycleFlags.