Interface RSetAsync<V>

    • Method Detail

      • removeRandomAsync

        RFuture<Set<V>> removeRandomAsync​(int amount)
        Removes and returns random elements from set in async mode
        Parameters:
        amount - of random values
        Returns:
        random values
      • removeRandomAsync

        RFuture<V> removeRandomAsync()
        Removes and returns random element from set in async mode
        Returns:
        value
      • randomAsync

        RFuture<V> randomAsync()
        Returns random element from set in async mode
        Returns:
        value
      • moveAsync

        RFuture<Boolean> moveAsync​(String destination,
                                   V member)
        Move a member from this set to the given destination set in async mode.
        Parameters:
        destination - the destination set
        member - the member to move
        Returns:
        true if the element is moved, false if the element is not a member of this set or no operation was performed
      • readAllAsync

        RFuture<Set<V>> readAllAsync()
        Read all elements at once
        Returns:
        values
      • unionAsync

        RFuture<Integer> unionAsync​(String... names)
        Union sets specified by name and write to current set. If current set already exists, it is overwritten.
        Parameters:
        names - - name of sets
        Returns:
        size of union
      • readUnionAsync

        RFuture<Set<V>> readUnionAsync​(String... names)
        Union sets specified by name with current set. Without current set state change.
        Parameters:
        names - - name of sets
        Returns:
        values
      • diffAsync

        RFuture<Integer> diffAsync​(String... names)
        Diff sets specified by name and write to current set. If current set already exists, it is overwritten.
        Parameters:
        names - - name of sets
        Returns:
        size of diff
      • readDiffAsync

        RFuture<Set<V>> readDiffAsync​(String... names)
        Diff sets specified by name with current set. Without current set state change.
        Parameters:
        names - - name of sets
        Returns:
        values
      • intersectionAsync

        RFuture<Integer> intersectionAsync​(String... names)
        Intersection sets specified by name and write to current set. If current set already exists, it is overwritten.
        Parameters:
        names - - name of sets
        Returns:
        size of intersection
      • readIntersectionAsync

        RFuture<Set<V>> readIntersectionAsync​(String... names)
        Intersection sets specified by name with current set. Without current set state change.
        Parameters:
        names - - name of sets
        Returns:
        values