Interface RSetAsync<V>

    • Method Detail

      • removeRandomAsync

        <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
      • randomAsync

        <V>> randomAsync​(int count)
        Returns random elements from set limited by count
        Parameters:
        count - - values amount to return
        Returns:
        value
      • moveAsync

        > moveAsync​( 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

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

        > unionAsync​(... 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

        <... names)
        Union sets specified by name with current set. Without current set state change.
        Parameters:
        names - - name of sets
        Returns:
        values
      • diffAsync

        > diffAsync​(... 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

        <... names)
        Diff sets specified by name with current set. Without current set state change.
        Parameters:
        names - - name of sets
        Returns:
        values
      • intersectionAsync

        > intersectionAsync​(... 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

        <... names)
        Intersection sets specified by name with current set. Without current set state change.
        Parameters:
        names - - name of sets
        Returns:
        values
      • tryAddAsync

        > tryAddAsync​(V... values)
        Tries to add elements only if none of them in set.
        Parameters:
        values - - values to add
        Returns:
        true if elements successfully added, otherwise false.