Interface Queue.QueueCallback

Enclosing interface:
Queue
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Queue.QueueCallback
The callback parameter type passed to [Queue.poll]. The queue implementation will invoke the callback passing the next message from the queue and an "ack" function used to acknowledge successful processing of the message.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Message message, Runnable ack)