Codota Logo
RedissonClient.getBlockingQueue
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain RedissonClient
private void myMethod () {
RedissonClient r =
  • Codota IconConfig config;Redisson.create(config)
  • Codota IconRedisson.create()
  • Smart code suggestions by Codota
}
origin: zhegexiaohuozi/SeimiCrawler

private RBlockingQueue<Request> getQueue(String crawlerName){
  RBlockingQueue<Request> rBlockingQueue = queueCache.get(crawlerName);
  if (rBlockingQueue == null){
    rBlockingQueue = redisson.getBlockingQueue(quueNamePrefix + crawlerName, new FstCodec());
    queueCache.put(crawlerName,rBlockingQueue);
  }
  return rBlockingQueue;
}
origin: redisson/redisson

@Override
public <T> void register(Class<T> remoteInterface, T object, int workers, ExecutorService executor) {
  if (workers < 1) {
    throw new IllegalArgumentException("executorsAmount can't be lower than 1");
  }
  for (Method method : remoteInterface.getMethods()) {
    RemoteServiceMethod value = new RemoteServiceMethod(method, object);
    RemoteServiceKey key = new RemoteServiceKey(remoteInterface, method.getName(), getMethodSignatures(method));
    if (beans.put(key, value) != null) {
      return;
    }
  }
  remoteMap.put(remoteInterface, new Entry(workers));
  
  String requestQueueName = getRequestQueueName(remoteInterface);
  RBlockingQueue<String> requestQueue = redisson.getBlockingQueue(requestQueueName, StringCodec.INSTANCE);
  subscribe(remoteInterface, requestQueue, executor);
}
origin: redisson/redisson

@Override
public <T> void register(Class<T> remoteInterface, T object, int workers, ExecutorService executor) {
  if (workers < 1) {
    throw new IllegalArgumentException("executorsAmount can't be lower than 1");
  }
  for (Method method : remoteInterface.getMethods()) {
    RemoteServiceMethod value = new RemoteServiceMethod(method, object);
    RemoteServiceKey key = new RemoteServiceKey(remoteInterface, method.getName(), getMethodSignatures(method));
    if (beans.put(key, value) != null) {
      return;
    }
  }
  remoteMap.put(remoteInterface, new Entry(workers));
  
  String requestQueueName = getRequestQueueName(remoteInterface);
  RBlockingQueue<String> requestQueue = redisson.getBlockingQueue(requestQueueName, StringCodec.INSTANCE);
  subscribe(remoteInterface, requestQueue, executor);
}
origin: redisson/redisson

List<Result> list = entry.getResponses().get(key);
if (list == null) {
  RBlockingQueue<RRemoteServiceResponse> responseQueue = redisson.getBlockingQueue(responseQueueName, codec);
  responseQueue.takeAsync().addListener(this);
  return;
  responses.remove(responseQueueName, entry);
} else {
  RBlockingQueue<RRemoteServiceResponse> responseQueue = redisson.getBlockingQueue(responseQueueName, codec);
  responseQueue.takeAsync().addListener(this);
origin: redisson/redisson

List<Result> list = entry.getResponses().get(key);
if (list == null) {
  RBlockingQueue<RRemoteServiceResponse> responseQueue = redisson.getBlockingQueue(responseQueueName, codec);
  responseQueue.takeAsync().addListener(this);
  return;
  responses.remove(responseQueueName, entry);
} else {
  RBlockingQueue<RRemoteServiceResponse> responseQueue = redisson.getBlockingQueue(responseQueueName, codec);
  responseQueue.takeAsync().addListener(this);
origin: redisson/redisson

RBlockingQueue<RRemoteServiceResponse> responseQueue = redisson.getBlockingQueue(responseQueueName, codec);
RFuture<RRemoteServiceResponse> future = responseQueue.takeAsync();
future.addListener(new FutureListener<RRemoteServiceResponse>() {
origin: redisson/redisson

RBlockingQueue<RRemoteServiceResponse> responseQueue = redisson.getBlockingQueue(responseQueueName, codec);
RFuture<RRemoteServiceResponse> future = responseQueue.takeAsync();
future.addListener(new FutureListener<RRemoteServiceResponse>() {
origin: redisson/redisson

RBlockingQueueAsync<RRemoteServiceResponse> queue = redisson.getBlockingQueue(responseName, codec);
RFuture<Void> clientsFuture = queue.putAsync(responseHolder.get());
queue.expireAsync(timeout, TimeUnit.MILLISECONDS);
origin: redisson/redisson

RBlockingQueueAsync<RRemoteServiceResponse> queue = redisson.getBlockingQueue(responseName, codec);
RFuture<Void> clientsFuture = queue.putAsync(responseHolder.get());
queue.expireAsync(timeout, TimeUnit.MILLISECONDS);
origin: yangwenjie88/delay-queue

/**
 * Get blocking queue r blocking queue.
 *
 * @param <V>        the type parameter
 * @param objectName the object name
 * @return the r blocking queue
 */
public static <V> RBlockingQueue<V> getBlockingQueue(String objectName){
  return redissonClient.getBlockingQueue(objectName);
}
origin: org.hswebframework/hsweb-task-cluster

@Override
@SuppressWarnings("all")
public <T> Queue<T> getQueue(String name) {
  return (Queue) queueCache.computeIfAbsent(name,
      n -> new RedissonQueue<T>(redissonClient.getBlockingQueue(prefix + name), executorService) {
        @Override
        public void close() {
          super.close();
          queueCache.remove(name);
        }
      });
}
origin: org.redisson/redisson

@Override
public <T> void register(Class<T> remoteInterface, T object, int workers, ExecutorService executor) {
  if (workers < 1) {
    throw new IllegalArgumentException("executorsAmount can't be lower than 1");
  }
  for (Method method : remoteInterface.getMethods()) {
    RemoteServiceMethod value = new RemoteServiceMethod(method, object);
    RemoteServiceKey key = new RemoteServiceKey(remoteInterface, method.getName(), getMethodSignatures(method));
    if (beans.put(key, value) != null) {
      return;
    }
  }
  remoteMap.put(remoteInterface, new Entry(workers));
  
  String requestQueueName = getRequestQueueName(remoteInterface);
  RBlockingQueue<String> requestQueue = redisson.getBlockingQueue(requestQueueName, StringCodec.INSTANCE);
  subscribe(remoteInterface, requestQueue, executor);
}
origin: org.redisson/redisson

List<Result> list = entry.getResponses().get(key);
if (list == null) {
  RBlockingQueue<RRemoteServiceResponse> responseQueue = redisson.getBlockingQueue(responseQueueName, codec);
  responseQueue.takeAsync().addListener(this);
  return;
  responses.remove(responseQueueName, entry);
} else {
  RBlockingQueue<RRemoteServiceResponse> responseQueue = redisson.getBlockingQueue(responseQueueName, codec);
  responseQueue.takeAsync().addListener(this);
origin: org.redisson/redisson

RBlockingQueue<RRemoteServiceResponse> responseQueue = redisson.getBlockingQueue(responseQueueName, codec);
RFuture<RRemoteServiceResponse> future = responseQueue.takeAsync();
future.addListener(new FutureListener<RRemoteServiceResponse>() {
origin: redisson/redisson-examples

RBlockingQueue<String> queue = redisson.getBlockingQueue("myQueue");
queue.add("1");
queue.add("2");
origin: org.redisson/redisson

RBlockingQueueAsync<RRemoteServiceResponse> queue = redisson.getBlockingQueue(responseName, codec);
RFuture<Void> clientsFuture = queue.putAsync(responseHolder.get());
queue.expireAsync(timeout, TimeUnit.MILLISECONDS);
org.redisson.apiRedissonClientgetBlockingQueue

Javadoc

Returns unbounded blocking 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,
  • getList,
  • getScoredSortedSet,
  • getExecutorService,
  • getFairLock,
  • getQueue,
  • getReadWriteLock,
  • getListMultimap

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now