Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Allow manual ack and nack to take multiple messages #158

@ghostbuster91

Description

@ghostbuster91

Currently messages for manual ack and nack in PersistentSubscriptionActor are defined as follows:

  final case class ManualAck(eventId: Uuid)
  final case class ManualNak(eventId: Uuid)

While the underlying api allows to pass there multiple events id:

    case Event(PSA.ManualAck(eventId), details: PSA.SubscriptionDetails) =>
      toConnection(Ack(details.subscriptionId, eventId :: Nil))
      stay
    case Event(PSA.ManualNak(eventId), details: PSA.SubscriptionDetails) =>
      toConnection(Nak(details.subscriptionId, List(eventId), Retry, None))
      stay
  }

Is there any valid reason why options to pass lists isn't exposed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions