Skip to content

PubSub modifyAckDeadline question #1359

Description

@fondberg

Given a MessageConsumer constructed like this:

 MessageConsumer consumer = pubsub.pullAsync(
        subscription,
        messageProcessor,
        PubSub.PullOption.maxQueuedCallbacks(maxQueuedCallbacks),
        PubSub.PullOption.executorFactory(executorFactory)
    );

How can I modify the acknowledge deadline for a the message?
To use the pubsub.modifyAckDeadline(); I need to know the ackId or ackId's but I can't get that from the process(Message) call.

public class BuildEventHandler implements PubSub.MessageProcessor {
  public void process(Message message) throws Exception {
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions