Package-level declarations

This package is devoted to message delivery mechanism.

Types

Link copied to clipboard
public abstract class AbstractMessageEndpoint<I, M extends SignalEnvelope<? extends Object, ? extends Object, ? extends Object>> implements MessageEndpoint<I, M>
An abstract base for messages endpoints.
Link copied to clipboard
public abstract class AbstractWorkRegistry implements ShardedWorkRegistry
An implementation base for ShardedWorkRegistries based on a specific persistence mechanism.
Link copied to clipboard
public final class AlreadyPickedUp extends FailedPickUp
Represents a scenario when shard could not be picked as it's already picked by another worker.
Link copied to clipboard
public interface BatchDeliveryListener<I>
Listens to start and end of the Inbox batch delivery.
Link copied to clipboard
An exception telling that the projection catch-up cannot be started, since some of the requested entities are already catching up.
Link copied to clipboard
public final class CatchUpProcess<I> extends AbstractStatefulReactor<I, S, B>
A process that performs a projection catch-up.
Link copied to clipboard
public final class CatchUpProcessBuilder<I>
A builder for CatchUpProcess.
Link copied to clipboard
public final class CatchUpReadRequest implements ReadRequest<I>
A request to read the state of CatchUp from the storage.
Link copied to clipboard
public interface CatchUpSignal
A marker interface for the signals controlling the execution of catch-up processes.
Link copied to clipboard
public interface CatchUpStorage implements Storage<I, M, R>
A storage for the state of the ongoing catch-up processes.
Link copied to clipboard
public interface CommandEndpoint<I> implements MessageEndpoint<I, M>
An endpoint which accepts commands.
Link copied to clipboard
public final class Delivery
Delivers the messages to the entities.
Link copied to clipboard
public final class DeliveryBuilder
A builder for Delivery instances.
Link copied to clipboard
public class DeliveryMonitor
A controlling monitor of a Inbox Delivery process.
Link copied to clipboard
public final class DeliveryStats
The statistics on delivering the messages from a certain shard.
Link copied to clipboard
public abstract class DeliveryStrategy
Determines the index of a shard for the given identifier of an entity.
Link copied to clipboard
public interface EventEndpoint<I> implements MessageEndpoint<I, M>
An endpoint which accepts events.
Link copied to clipboard
public abstract class FailedPickUp
An abstract base for shard pick-up-related failures.
Link copied to clipboard
public final class FailedReception
The evidence of an InboxMessage which has failed to be handled by its receptor, such as an event or a command handler method.
Link copied to clipboard
public final class Inbox<I>
A container for the messages dispatched to a certain consumer, such as an event subscriber or a command handler.
Link copied to clipboard
public final class InboxMessageComparator implements Comparator<T>, Serializable
A comparator comparing the InboxMessages so that they appear in a chronological order of their appearance in the corresponding Inbox.
Link copied to clipboard
public interface InboxMessageMixin implements ShardedRecord
A mixin for InboxMessage.
Link copied to clipboard
public final class InboxReadRequest implements ReadRequest<I>
A request to read a certain InboxMessage by its ID.
Link copied to clipboard
public interface InboxStorage implements Storage<I, M, R>
A contract for storages of Inbox messages.
Link copied to clipboard
Thrown if there is an attempt to mark a message put to Inbox with a label, which was not added for the Inbox instance.
Link copied to clipboard
public interface LazyEndpoint<I, M extends SignalEnvelope<? extends Object, ? extends Object, ? extends Object>> implements Function<T, R>
A lazily initialized MessageEndpoint, which should be used as a destination for inbox messages.
Link copied to clipboard
public final class LocalDispatchingObserver implements ShardObserver
An observer of changes to the shard contents, which triggers immediate delivery of the sharded messages.
Link copied to clipboard
public interface MessageEndpoint<I, M extends SignalEnvelope<? extends Object, ? extends Object, ? extends Object>>
An endpoint for messages delivered to an abstract target.
Link copied to clipboard
public interface Page<M extends ShardedRecord>
A page of messages obtained from a sharded storage in a read operation.
Link copied to clipboard
public interface PickUpOutcomeMixin
A mixin of the PickUpOutcome that provides convenient methods for accessing the result.
Link copied to clipboard
Specifies the way to repeat the dispatching of InboxMessages.
Link copied to clipboard
public interface RepositoryLookup<I> implements Function<T, R>
A function that searches for the ProjectionRepository instance by the type URL of the state of the managed projection.
Link copied to clipboard
public final class RuntimeFailure extends FailedPickUp
Represents a scenario when shard could not be picked because of some occurred exception.
Link copied to clipboard
public interface ShardedRecord
A Protobuf Message used for storage in a sharded environment.
Link copied to clipboard
public interface ShardedWorkRegistry
The registry of the shard indexes along with the identifiers of the nodes, which process the messages corresponding to each index.
Link copied to clipboard
public interface ShardEvent
An event which is always delivered via the shard, which index is determined by the identifier of this message.
Link copied to clipboard
public interface ShardObserver
An abstract base for observers of the updates made to the contents of shards.
Link copied to clipboard
public final class UniformAcrossAllShards extends DeliveryStrategy implements Serializable
The strategy of splitting the entities into a number of shards uniformly.