Interface EventSourcedEntity.Effect.OnSuccessBuilder<S>

Enclosing interface:
EventSourcedEntity.Effect<T>

public static interface EventSourcedEntity.Effect.OnSuccessBuilder<S>
  • Method Details

    • deleteEntity

      Delete the entity. No addition events are allowed. To observe the deletion in consumers and views, persist a final event representing the deletion before triggering delete.
    • thenReply

      <T> EventSourcedEntity.Effect<T> thenReply(Function<S,T> replyMessage)
      Reply after for example persist event.
      Type Parameters:
      T - The type of the message that must be returned by this call.
      Parameters:
      replyMessage - Function to create the reply message from the new state.
      Returns:
      A message reply.
    • thenReply

      <T> EventSourcedEntity.Effect<T> thenReply(Function<S,T> replyMessage, Metadata metadata)
      Reply after for example persist event.
      Type Parameters:
      T - The type of the message that must be returned by this call.
      Parameters:
      replyMessage - Function to create the reply message from the new state.
      metadata - The metadata for the message.
      Returns:
      A message reply.