Package org.redisson

Class RedissonBuckets

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <V> <,​V> ... keys)
      Returns Redis object mapped by key.
      <V> <,​V>> ... keys)
      Returns Redis object mapped by key.
      void <,​?> buckets)
      Saves objects mapped by Redis key.
      > <,​?> buckets)
      Saves objects mapped by Redis key.
      boolean <,​?> buckets)
      Try to save objects mapped by Redis key.
      > <,​?> buckets)
      Try to save objects mapped by Redis key.
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Method Detail

      • get

        public <V> <,​V> get​(... 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​(<,​?> 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​(<,​?> 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> <,​V>> getAsync​(... 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 > trySetAsync​(<,​?> 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 > setAsync​(<,​?> 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