Tabnine Logo
JedisClusterListCommands.bRPop
Code IndexAdd Tabnine to your IDE (free)

How to use
bRPop
method
in
org.springframework.data.redis.connection.jedis.JedisClusterListCommands

Best Java code snippets using org.springframework.data.redis.connection.jedis.JedisClusterListCommands.bRPop (Showing top 3 results out of 315)

origin: spring-projects/spring-data-redis

@Override
public byte[] bRPopLPush(int timeout, byte[] srcKey, byte[] dstKey) {
  Assert.notNull(srcKey, "Source key must not be null!");
  Assert.notNull(dstKey, "Destination key must not be null!");
  if (ClusterSlotHashUtil.isSameSlotForAllKeys(srcKey, dstKey)) {
    try {
      return connection.getCluster().brpoplpush(srcKey, dstKey, timeout);
    } catch (Exception ex) {
      throw convertJedisAccessException(ex);
    }
  }
  List<byte[]> val = bRPop(timeout, srcKey);
  if (!CollectionUtils.isEmpty(val)) {
    lPush(dstKey, val.get(1));
    return val.get(1);
  }
  return null;
}
origin: org.springframework.data/spring-data-redis

@Override
public byte[] bRPopLPush(int timeout, byte[] srcKey, byte[] dstKey) {
  Assert.notNull(srcKey, "Source key must not be null!");
  Assert.notNull(dstKey, "Destination key must not be null!");
  if (ClusterSlotHashUtil.isSameSlotForAllKeys(srcKey, dstKey)) {
    try {
      return connection.getCluster().brpoplpush(srcKey, dstKey, timeout);
    } catch (Exception ex) {
      throw convertJedisAccessException(ex);
    }
  }
  List<byte[]> val = bRPop(timeout, srcKey);
  if (!CollectionUtils.isEmpty(val)) {
    lPush(dstKey, val.get(1));
    return val.get(1);
  }
  return null;
}
origin: apache/servicemix-bundles

@Override
public byte[] bRPopLPush(int timeout, byte[] srcKey, byte[] dstKey) {
  Assert.notNull(srcKey, "Source key must not be null!");
  Assert.notNull(dstKey, "Destination key must not be null!");
  if (ClusterSlotHashUtil.isSameSlotForAllKeys(srcKey, dstKey)) {
    try {
      return connection.getCluster().brpoplpush(srcKey, dstKey, timeout);
    } catch (Exception ex) {
      throw convertJedisAccessException(ex);
    }
  }
  List<byte[]> val = bRPop(timeout, srcKey);
  if (!CollectionUtils.isEmpty(val)) {
    lPush(dstKey, val.get(1));
    return val.get(1);
  }
  return null;
}
org.springframework.data.redis.connection.jedisJedisClusterListCommandsbRPop

Popular methods of JedisClusterListCommands

  • <init>
  • convertJedisAccessException
  • lPush
  • rPop

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Top PhpStorm 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