Class QueueSafety<T>

java.lang.Object
org.apache.curator.framework.recipes.queue.QueueSafety<T>

public class QueueSafety<T> extends Object
Parameter block for specifying queue safety with either DistributedQueue or DistributedPriorityQueue
  • Constructor Details

    • QueueSafety

      public QueueSafety(String lockPath, QueueConsumer<T> consumer)
      Parameters:
      lockPath - ZKPath to use for locking purposes
      consumer - the message consumer