Interface RSetReactive<V>

    • Method Detail

      • getPermitExpirableSemaphore

        RPermitExpirableSemaphoreReactive getPermitExpirableSemaphore(V value)
        Returns RPermitExpirableSemaphore instance associated with value
        Parameters:
        value - - set value
        Returns:
        RPermitExpirableSemaphore object
      • getSemaphore

        RSemaphoreReactive getSemaphore(V value)
        Returns RSemaphore instance associated with value
        Parameters:
        value - - set value
        Returns:
        RSemaphore object
      • getFairLock

        RLockReactive getFairLock(V value)
        Returns RLock instance associated with value
        Parameters:
        value - - set value
        Returns:
        RLock object
      • getReadWriteLock

        RReadWriteLockReactive getReadWriteLock(V value)
        Returns RReadWriteLock instance associated with value
        Parameters:
        value - - set value
        Returns:
        RReadWriteLock object
      • getLock

        RLockReactive getLock(V value)
        Returns lock instance associated with value
        Parameters:
        value - - set value
        Returns:
        RLock object
      • iterator

        reactor.core.publisher.Flux<V> iterator(int count)
        Returns elements iterator fetches elements in a batch. Batch size is defined by count param.
        Parameters:
        count - - size of elements batch
        Returns:
        iterator
      • iterator

        reactor.core.publisher.Flux<V> iterator(String pattern,
                                                int count)
        Returns elements iterator fetches elements in a batch. Batch size is defined by count param. If pattern is not null then only elements match this pattern are loaded.
        Parameters:
        pattern - - search pattern
        count - - size of elements batch
        Returns:
        iterator
      • iterator

        reactor.core.publisher.Flux<V> iterator(String pattern)
        Returns elements iterator. If pattern is not null then only elements match this pattern are loaded.
        Parameters:
        pattern - - search pattern
        Returns:
        iterator
      • removeRandom

        reactor.core.publisher.Mono<Set<V>> removeRandom(int amount)
        Removes and returns random elements limited by amount
        Parameters:
        amount - of random elements
        Returns:
        random elements
      • removeRandom

        reactor.core.publisher.Mono<V> removeRandom()
        Removes and returns random element
        Returns:
        random element
      • random

        reactor.core.publisher.Mono<V> random()
        Returns random element
        Returns:
        random element
      • random

        reactor.core.publisher.Mono<Set<V>> random(int count)
        Returns random elements from set limited by count
        Parameters:
        count - - values amount to return
        Returns:
        random elements
      • move

        reactor.core.publisher.Mono<Boolean> move(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
      • readAll

        reactor.core.publisher.Mono<Set<V>> readAll()
        Read all elements at once
        Returns:
        values
      • union

        reactor.core.publisher.Mono<Integer> union(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
      • readUnion

        reactor.core.publisher.Mono<Set<V>> readUnion(String... names)
        Union sets specified by name with current set. Without current set state change.
        Parameters:
        names - - name of sets
        Returns:
        size of union
      • diff

        reactor.core.publisher.Mono<Integer> diff(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
      • readDiff

        reactor.core.publisher.Mono<Set<V>> readDiff(String... names)
        Diff sets specified by name with current set. Without current set state change.
        Parameters:
        names - - name of sets
        Returns:
        values
      • intersection

        reactor.core.publisher.Mono<Integer> intersection(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
      • readIntersection

        reactor.core.publisher.Mono<Set<V>> readIntersection(String... names)
        Intersection sets specified by name with current set. Without current set state change.
        Parameters:
        names - - name of sets
        Returns:
        values