Tabnine Logo
RedissonClient.getBlockingQueue
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Menu (java.awt)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
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