Skip to content

PubSub modifyAckDeadline question #1359

@fondberg

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 {
  }
}

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