Tabnine Logo
DynoQueue.clear
Code IndexAdd Tabnine to your IDE (free)

How to use
clear
method
in
com.netflix.dyno.queues.DynoQueue

Best Java code snippets using com.netflix.dyno.queues.DynoQueue.clear (Showing top 8 results out of 315)

origin: Netflix/conductor

@Override
public void flush(String queueName) {
  DynoQueue queue = queues.get(queueName);
  if (queue != null) {
    queue.clear();
  }
}
origin: Netflix/dyno-queues

@Override
public void clear() {
  for (DynoQueue q : queues.values()) {
    q.clear();
  }
}
origin: com.netflix.conductor/conductor-redis-persistence

@Override
public void flush(String queueName) {
  DynoQueue queue = queues.get(queueName);
  if (queue != null) {
    queue.clear();
  }
}
origin: Netflix/dyno-queues

public BaseQueueTests(String queueName) {
  this.queueName = queueName;
  this.messageKeyPrefix = redisKeyPrefix + ".MESSAGE.";
  this.rdq = getQueue(redisKeyPrefix, queueName);
  this.rdq.clear();
}
origin: Netflix/dyno-queues

@Before
public void clear() {
  rdq.clear();
}
origin: Netflix/dyno-queues

@Test
public void testConcurrency() throws InterruptedException, ExecutionException {
  rdq.clear();
origin: Netflix/dyno-queues

@Test
public void testClearQueues() {
  rdq.clear();
  int count = 10;
  List<Message> messages = new LinkedList<>();
  for (int i = 0; i < count; i++) {
    Message msg = new Message("x" + i, "Hello World-" + i);
    msg.setPriority(count - i);
    messages.add(msg);
  }
  rdq.push(messages);
  assertEquals(count, rdq.size());
  rdq.clear();
  assertEquals(0, rdq.size());
}
origin: Netflix/dyno-queues

@Test
public void testAll() {
  rdq.clear();
  assertEquals(0, rdq.size());
com.netflix.dyno.queuesDynoQueueclear

Javadoc

Truncates the entire queue. Use with caution!

Popular methods of DynoQueue

  • ack
    Bulk version for #ack(String)
  • get
  • size
  • getName
  • pop
  • push
  • remove
  • setTimeout
  • setUnackTimeout
  • close
  • peek
    Provides a peek into the queue without taking messages out.
  • processUnacks
    Process un-acknowledged messages. The messages which are polled by the client but not ack'ed are mov
  • peek,
  • processUnacks,
  • shardSizes

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JTable (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now