Package org.redisson

Class RedissonBuckets

java.lang.Object
org.redisson.RedissonBuckets
All Implemented Interfaces:
RBuckets, RBucketsAsync
Direct Known Subclasses:
RedissonTransactionalBuckets

public class RedissonBuckets extends Object implements RBuckets
Author:
Nikita Koksharov
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public <V> Map<String,V> get(String... keys)
      Description copied from interface: RBuckets
      Returns Redis object mapped by key. Result Map is not contains key-value entry for null values.
      Specified by:
      get in interface RBuckets
      Type Parameters:
      V - type of value
      Parameters:
      keys - - keys
      Returns:
      Map with name of bucket as key and bucket as value
    • trySet

      public boolean trySet(Map<String,?> buckets)
      Description copied from interface: RBuckets
      Try to save objects mapped by Redis key. If at least one of them is already exist then don't set none of them.
      Specified by:
      trySet in interface RBuckets
      Parameters:
      buckets - - map of buckets
      Returns:
      true if object has been set overwise false
    • set

      public void set(Map<String,?> buckets)
      Description copied from interface: RBuckets
      Saves objects mapped by Redis key.
      Specified by:
      set in interface RBuckets
      Parameters:
      buckets - - map of buckets
    • getAsync

      public <V> RFuture<Map<String,V>> getAsync(String... keys)
      Description copied from interface: RBucketsAsync
      Returns Redis object mapped by key. Result Map is not contains key-value entry for null values.
      Specified by:
      getAsync in interface RBucketsAsync
      Type Parameters:
      V - type of value
      Parameters:
      keys - - keys
      Returns:
      Map with name of bucket as key and bucket as value
    • trySetAsync

      public RFuture<Boolean> trySetAsync(Map<String,?> buckets)
      Description copied from interface: RBucketsAsync
      Try to save objects mapped by Redis key. If at least one of them is already exist then don't set none of them.
      Specified by:
      trySetAsync in interface RBucketsAsync
      Parameters:
      buckets - - map of buckets
      Returns:
      true if object has been set otherwise false
    • setAsync

      public RFuture<Void> setAsync(Map<String,?> buckets)
      Description copied from interface: RBucketsAsync
      Saves objects mapped by Redis key.
      Specified by:
      setAsync in interface RBucketsAsync
      Parameters:
      buckets - - map of buckets
      Returns:
      void