Tabnine Logo
RedissonClient.getQueue
Code IndexAdd Tabnine to your IDE (free)

How to use
getQueue
method
in
org.redisson.api.RedissonClient

Best Java code snippets using org.redisson.api.RedissonClient.getQueue (Showing top 9 results out of 315)

origin: yangwenjie88/delay-queue

/**
 * 获取queue对象
 *
 * @param <V>        the type parameter
 * @param objectName the object name
 * @return the r queue
 */
public static <V> RQueue<V> getQueue(String objectName){
  return redissonClient.getQueue(objectName);
}
origin: kekingcn/keking-binlog-distributor

private void doRunWithoutLock() {
  try {
    RQueue<EventBaseDTO> queue = redissonClient.getQueue(dataKey);
    EventBaseDTO dto;
    while ((dto = queue.poll()) != null) {
      doHandleWithoutLock(dto, retryTimes);
    }
  } catch (Exception e) {
    e.printStackTrace();
    log.severe("接收处理数据失败:" + e.toString());
  }
}
origin: kekingcn/keking-binlog-distributor

  public void doPublish(String clientId, String dataKey, EventBaseDTO data) {
    RQueue<EventBaseDTO> dataList = redissonClient.getQueue(dataKey);
    boolean result = dataList.offer(data);
    String notifier = NOTIFIER.concat(clientId);
    RTopic<String> rTopic = redissonClient.getTopic(notifier);
    rTopic.publish(dataKey);
  }
}
origin: org.hswebframework.web/hsweb-message-redis

private void doRun() {
  if (subject instanceof QueueMessageSubject) {
    String queueName = ((QueueMessageSubject) subject).getQueueName();
    RQueue<M> queue = redisson.getQueue(queueName, codec);
    RCountDownLatch countDownLatch = redisson.getCountDownLatch("cdl_" + queueName);
    Thread thread = new Thread(() -> {
origin: kekingcn/keking-binlog-distributor

RQueue<EventBaseDTO> queue = redissonClient.getQueue(dataKey);
if (!queue.isExists() || queue.isEmpty()) {
  return;
origin: redisson/redisson-examples

RQueue<String> queue = redisson.getQueue("myQueue");
queue.add("1");
queue.add("2");
queue.addAll(secondList);
RQueue<String> secondQueue = redisson.getQueue("mySecondQueue");
origin: redisson/redisson-examples

queue.addAll(secondList);
RQueue<String> secondQueue = redisson.getQueue("mySecondQueue");
origin: redisson/redisson-examples

deque.addAll(secondList);
RQueue<String> secondQueue = redisson.getQueue("mySecondQueue");
origin: redisson/redisson-examples

deque.addAll(secondList);
RQueue<String> secondQueue = redisson.getQueue("mySecondQueue");
org.redisson.apiRedissonClientgetQueue

Javadoc

Returns unbounded queue instance by name.

Popular methods of RedissonClient

  • shutdown
    Shuts down Redisson instance but NOT Redis server Shutdown ensures that no tasks are submitted for '
  • getMap
    Returns map instance by name using provided codec for both map keys and values.
  • getLock
    Returns lock instance by name. Implements a non-fair locking so doesn't guarantees an acquire order
  • getTopic
    Returns topic instance by name using provided codec for messages.
  • getBucket
    Returns object holder instance by name using provided codec for object.
  • getConfig
    Allows to get configuration provided during Redisson instance creation. Further changes on this obje
  • getMapCache
    Returns map-based cache instance by name using provided codec for both cache keys and values. Suppor
  • getAtomicLong
    Returns atomicLong instance by name.
  • getKeys
    Returns interface with methods for Redis keys. Each of Redis/Redisson object associated with own key
  • getScript
    Returns script operations object using provided codec.
  • getSemaphore
    Returns semaphore instance by name
  • getSet
    Returns set instance by name using provided codec for set objects.
  • getSemaphore,
  • getSet,
  • getBlockingQueue,
  • getList,
  • getScoredSortedSet,
  • getExecutorService,
  • getFairLock,
  • getReadWriteLock,
  • getListMultimap

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • 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