Class BlockingTransactionalRedisDataSourceImpl

    • Method Detail

      • hash

        public <K,​F,​V> TransactionalHashCommands<K,​F,​V> hash​(Class<K> redisKeyType,
                                                                                     Class<F> typeOfField,
                                                                                     Class<V> typeOfValue)
        Description copied from interface: TransactionalRedisDataSource
        Gets the object to execute commands manipulating hashes (a.k.a. Map&lt;F, V&gt;).

        If you want to use a hash of &lt;String -> Person&gt; stored using String identifier, you would use: hash(String.class, String.class, Person.class). If you want to use a hash of &lt;String -> Person&gt; stored using UUID identifier, you would use: hash(UUID.class, String.class, Person.class).

        Specified by:
        hash in interface TransactionalRedisDataSource
        Type Parameters:
        K - the type of the redis key
        F - the type of the fields (map's keys)
        V - the type of the value
        Parameters:
        redisKeyType - the class of the keys
        typeOfField - the class of the fields
        typeOfValue - the class of the values
        Returns:
        the object to execute commands manipulating hashes (a.k.a. Map&lt;K, V&gt;).
      • geo

        public <K,​V> TransactionalGeoCommands<K,​V> geo​(Class<K> redisKeyType,
                                                                   Class<V> memberType)
        Description copied from interface: TransactionalRedisDataSource
        Gets the object to execute commands manipulating geo items (a.k.a. {longitude, latitude, member}).

        V represents the type of the member, i.e. the localized thing.

        Specified by:
        geo in interface TransactionalRedisDataSource
        Type Parameters:
        K - the type of the redis key
        V - the type of the member
        Parameters:
        redisKeyType - the class of the keys
        memberType - the class of the members
        Returns:
        the object to execute geo commands.
      • set

        public <K,​V> TransactionalSetCommands<K,​V> set​(Class<K> redisKeyType,
                                                                   Class<V> memberType)
        Description copied from interface: TransactionalRedisDataSource
        Gets the object to execute commands manipulating sets.
        Specified by:
        set in interface TransactionalRedisDataSource
        Type Parameters:
        K - the type of the key
        V - the type of the member
        Parameters:
        redisKeyType - the type of the keys
        memberType - the type of the member stored in each set
        Returns:
        the object to manipulate sets.
      • sortedSet

        public <K,​V> TransactionalSortedSetCommands<K,​V> sortedSet​(Class<K> redisKeyType,
                                                                               Class<V> valueType)
        Description copied from interface: TransactionalRedisDataSource
        Gets the object to execute commands manipulating sorted sets.
        Specified by:
        sortedSet in interface TransactionalRedisDataSource
        Type Parameters:
        K - the type of the key
        V - the type of the value
        Parameters:
        redisKeyType - the type of the keys
        valueType - the type of the value sorted in the sorted sets
        Returns:
        the object to manipulate sorted sets.
      • string

        public <K,​V> TransactionalStringCommands<K,​V> string​(Class<K> redisKeyType,
                                                                         Class<V> valueType)
        Description copied from interface: TransactionalRedisDataSource
        Gets the object to execute commands manipulating stored strings.
        Specified by:
        string in interface TransactionalRedisDataSource
        Type Parameters:
        K - the type of the key
        V - the type of the value
        Parameters:
        redisKeyType - the type of the keys
        valueType - the type of the value, often String, or the value are encoded/decoded using codecs.
        Returns:
        the object to manipulate stored strings.
      • value

        public <K,​V> TransactionalValueCommands<K,​V> value​(Class<K> redisKeyType,
                                                                       Class<V> valueType)
        Description copied from interface: TransactionalRedisDataSource
        Gets the object to execute commands manipulating stored strings.

        NOTE: Instead of string, this group is named value to avoid the confusion with the Java String type. Indeed, Redis strings can be strings, numbers, byte arrays...

        Specified by:
        value in interface TransactionalRedisDataSource
        Type Parameters:
        K - the type of the key
        V - the type of the value
        Parameters:
        redisKeyType - the type of the keys
        valueType - the type of the value, often String, or the value are encoded/decoded using codecs.
        Returns:
        the object to manipulate stored strings.
      • list

        public <K,​V> TransactionalListCommands<K,​V> list​(Class<K> redisKeyType,
                                                                     Class<V> memberType)
        Description copied from interface: TransactionalRedisDataSource
        Gets the object to execute commands manipulating lists.
        Specified by:
        list in interface TransactionalRedisDataSource
        Type Parameters:
        K - the type of the key
        V - the type of the member
        Parameters:
        redisKeyType - the type of the keys
        memberType - the type of the member stored in each list
        Returns:
        the object to manipulate sets.
      • hyperloglog

        public <K,​V> TransactionalHyperLogLogCommands<K,​V> hyperloglog​(Class<K> redisKeyType,
                                                                                   Class<V> memberType)
        Description copied from interface: TransactionalRedisDataSource
        Gets the object to execute commands manipulating hyperloglog data structures.
        Specified by:
        hyperloglog in interface TransactionalRedisDataSource
        Type Parameters:
        K - the type of the key
        V - the type of the member
        Parameters:
        redisKeyType - the type of the keys
        memberType - the type of the member stored in the data structure
        Returns:
        the object to manipulate hyper log log data structures.
      • execute

        public void execute​(io.vertx.mutiny.redis.client.Command command,
                            String... args)
        Description copied from interface: TransactionalRedisDataSource
        Executes a command. This method is used to execute commands not offered by the API.
        Specified by:
        execute in interface TransactionalRedisDataSource
        Parameters:
        command - the command
        args - the parameters, encoded as String.
      • execute

        public void execute​(io.vertx.redis.client.Command command,
                            String... args)
        Description copied from interface: TransactionalRedisDataSource
        Executes a command. This method is used to execute commands not offered by the API.
        Specified by:
        execute in interface TransactionalRedisDataSource
        Parameters:
        command - the command
        args - the parameters, encoded as String.