Builder

public final class Builder<I>

A builder of Inbox instances.

Parameters

<I>

the type of identifier of the objects, for which the Inbox is built

Functions

Link copied to clipboard
public Inbox.Builder<I> addCommandEndpoint(InboxLabel label, LazyEndpoint<I, CommandEnvelope> lazyEndpoint)
Adds an endpoint for commands which will be delivered through the Inbox and marks it with the certain label.
Link copied to clipboard
public Inbox.Builder<I> addEventEndpoint(InboxLabel label, LazyEndpoint<I, EventEnvelope> lazyEndpoint)
Adds an endpoint for events which will be delivered through the Inbox and marks it with the certain label.
Link copied to clipboard
public Inbox<I> build()
Creates an instance of Inbox and registers it in the server-wide Delivery.
Link copied to clipboard
Allows to specify the listener of the starting and ending batch dispatching operations.