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

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

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

origin: Netflix/conductor

  @Override
  public boolean exists(String queueName, String id) {
    DynoQueue queue = queues.get(queueName);
    return Optional.ofNullable(queue.get(id)).isPresent();
  }
}
origin: Netflix/conductor

@Override
public boolean pushIfNotExists(String queueName, String id, long offsetTimeInSecond) {
  DynoQueue queue = queues.get(queueName);
  if (queue.get(id) != null) {
    return false;
  }
  Message msg = new Message(id, null);
  msg.setTimeout(offsetTimeInSecond, TimeUnit.SECONDS);
  queue.push(Collections.singletonList(msg));
  return true;
}
origin: Netflix/dyno-queues

@Override
public Message get(String messageId) {
  for (DynoQueue q : queues.values()) {
    Message msg = q.get(messageId);
    if (msg != null) {
      return msg;
    }
  }
  return null;
}
origin: com.netflix.conductor/conductor-redis-persistence

  @Override
  public boolean exists(String queueName, String id) {
    DynoQueue queue = queues.get(queueName);
    return Optional.ofNullable(queue.get(id)).isPresent();
  }
}
origin: com.netflix.conductor/conductor-redis-persistence

@Override
public boolean pushIfNotExists(String queueName, String id, long offsetTimeInSecond) {
  DynoQueue queue = queues.get(queueName);
  if (queue.get(id) != null) {
    return false;
  }
  Message msg = new Message(id, null);
  msg.setTimeout(offsetTimeInSecond, TimeUnit.SECONDS);
  queue.push(Collections.singletonList(msg));
  return true;
}
origin: Netflix/dyno-queues

  Message found = rdq.get(msg.getId());
  assertNotNull(found);
  assertEquals(msg.getId(), found.getId());
  assertEquals(msg.getTimeout(), found.getTimeout());
assertNull(rdq.get("some fake id"));
com.netflix.dyno.queuesDynoQueueget

Popular methods of DynoQueue

  • ack
    Provides an ackknowledge for the message. Once ack'ed the message is removed from the queue forever.
  • clear
    Truncates the entire queue. Use with caution!
  • 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

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JLabel (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 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