Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

Expose ackInbox from Message #147

@gunnaringe

Description

@gunnaringe

The only way to acknowledge a message today is by calling Message.ack().

Would it be possible to get hold of the subscription or ackInbox from the message so that we could access it from within the subscription callback?

The background for this is that we are exposing a gRPC API using STAN as a backend, and allow the client of the API to invoke a ack on our side.
Ideally, we would have a method like StreamingConnection.acknowledge() that was triggered by a API call, but creating the ack proto and sending it in the same manner as the Message would also be possible.

Is this something you would consider?

That is basically making Message.getSubscription() public instead of package-private.

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