Class BlockingTransactionalListCommandsImpl<K,V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
-
- io.quarkus.redis.runtime.datasource.BlockingTransactionalListCommandsImpl<K,V>
-
- All Implemented Interfaces:
TransactionalListCommands<K,V>,TransactionalRedisCommands
public class BlockingTransactionalListCommandsImpl<K,V> extends AbstractTransactionalRedisCommandGroup implements TransactionalListCommands<K,V>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
ds, timeout
-
-
Constructor Summary
Constructors Constructor Description BlockingTransactionalListCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalListCommands<K,V> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidblmove(K source, K destination, Position positionInSource, Position positionInDest, Duration timeout)Execute the command BLMOVE.voidblmpop(Duration timeout, Position position, int count, K... keys)Execute the command BLMPOP.voidblmpop(Duration timeout, Position position, K... keys)Execute the command BLMPOP.voidblpop(Duration timeout, K... keys)Execute the command BLPOP.voidbrpop(Duration timeout, K... keys)Execute the command BRPOP.voidbrpoplpush(Duration timeout, K source, K destination)Deprecated.voidlindex(K key, long index)Execute the command LINDEX.voidlinsertAfterPivot(K key, V pivot, V element)Execute the command LINSERT.voidlinsertBeforePivot(K key, V pivot, V element)Execute the command LINSERT.voidllen(K key)Execute the command LLEN.voidlmove(K source, K destination, Position positionInSource, Position positionInDestination)Execute the command LMOVE.voidlmpop(Position position, int count, K... keys)Execute the command LMPOP.voidlmpop(Position position, K... keys)Execute the command LMPOP.voidlpop(K key)Execute the command LPOP.voidlpop(K key, int count)Execute the command LPOP.voidlpos(K key, V element)Execute the command LPOS.voidlpos(K key, V element, int count)Execute the command LPOS.voidlpos(K key, V element, int count, LPosArgs args)Execute the command LPOS.voidlpos(K key, V element, LPosArgs args)Execute the command LPOS.voidlpush(K key, V... elements)Execute the command LPUSH.voidlpushx(K key, V... elements)Execute the command LPUSHX.voidlrange(K key, long start, long stop)Execute the command LRANGE.voidlrem(K key, long count, V element)Execute the command LREM.voidlset(K key, long index, V element)Execute the command LSET.voidltrim(K key, long start, long stop)Execute the command LTRIM.voidrpop(K key)Execute the command RPOP.voidrpop(K key, int count)Execute the command RPOP.voidrpoplpush(K source, K destination)Deprecated.voidrpush(K key, V... values)Execute the command RPUSH.voidrpushx(K key, V... values)Execute the command RPUSHX.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
getDataSource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.TransactionalRedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
BlockingTransactionalListCommandsImpl
public BlockingTransactionalListCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalListCommands<K,V> reactive, Duration timeout)
-
-
Method Detail
-
blmove
public void blmove(K source, K destination, Position positionInSource, Position positionInDest, Duration timeout)
Description copied from interface:TransactionalListCommandsExecute the command BLMOVE. Summary: Pop an element from a list, push it to another list and return it; or block until one is available Group: list Requires Redis 6.2.0- Specified by:
blmovein interfaceTransactionalListCommands<K,V>- Parameters:
source- the keydestination- the keypositionInSource- the position of the element in the source,LEFTmeans the first element,RIGHTmeans the last element.positionInDest- the position of the element in the destination,LEFTmeans the first element,RIGHTmeans the last element.timeout- the operation timeout (in seconds)
-
blmpop
public void blmpop(Duration timeout, Position position, K... keys)
Description copied from interface:TransactionalListCommandsExecute the command BLMPOP. Summary: Pop elements from a list, or block until one is available Group: list Requires Redis 7.0.0- Specified by:
blmpopin interfaceTransactionalListCommands<K,V>- Parameters:
timeout- the operation timeout (in seconds)position- whether if the element must be popped from the beginning of the list (LEFT) or from the end (RIGHT)keys- the keys from which the element must be popped
-
blmpop
public void blmpop(Duration timeout, Position position, int count, K... keys)
Description copied from interface:TransactionalListCommandsExecute the command BLMPOP. Summary: Pop elements from a list, or block until one is available Group: list Requires Redis 7.0.0- Specified by:
blmpopin interfaceTransactionalListCommands<K,V>- Parameters:
timeout- the operation timeout (in seconds)position- whether if the element must be popped from the beginning of the list (LEFT) or from the end (RIGHT)count- the number of element to popkeys- the keys from which the element must be popped
-
blpop
public void blpop(Duration timeout, K... keys)
Description copied from interface:TransactionalListCommandsExecute the command BLPOP. Summary: Remove and get the first element in a list, or block until one is available Group: list Requires Redis 2.0.0- Specified by:
blpopin interfaceTransactionalListCommands<K,V>- Parameters:
timeout- the operation timeout (in seconds)keys- the keys from which the element must be popped
-
brpop
public void brpop(Duration timeout, K... keys)
Description copied from interface:TransactionalListCommandsExecute the command BRPOP. Summary: Remove and get the last element in a list, or block until one is available Group: list Requires Redis 2.0.0- Specified by:
brpopin interfaceTransactionalListCommands<K,V>- Parameters:
timeout- the operation timeout (in seconds)keys- the keys from which the element must be popped
-
brpoplpush
@Deprecated public void brpoplpush(Duration timeout, K source, K destination)
Deprecated.Description copied from interface:TransactionalListCommandsExecute the command BRPOPLPUSH. Summary: Pop an element from a list, push it to another list and return it; or block until one is available Group: list Requires Redis 2.2.0- Specified by:
brpoplpushin interfaceTransactionalListCommands<K,V>- Parameters:
timeout- the timeout, in secondssource- the source keydestination- the detination key
-
lindex
public void lindex(K key, long index)
Description copied from interface:TransactionalListCommandsExecute the command LINDEX. Summary: Get an element from a list by its index Group: list Requires Redis 1.0.0- Specified by:
lindexin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyindex- the index
-
linsertBeforePivot
public void linsertBeforePivot(K key, V pivot, V element)
Description copied from interface:TransactionalListCommandsExecute the command LINSERT. Summary: Insert an element before another element in a list Group: list Requires Redis 2.2.0- Specified by:
linsertBeforePivotin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keypivot- the pivot, i.e. the position referenceelement- the element to insert
-
linsertAfterPivot
public void linsertAfterPivot(K key, V pivot, V element)
Description copied from interface:TransactionalListCommandsExecute the command LINSERT. Summary: Insert an element after another element in a list Group: list Requires Redis 2.2.0- Specified by:
linsertAfterPivotin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keypivot- the pivot, i.e. the position referenceelement- the element to insert
-
llen
public void llen(K key)
Description copied from interface:TransactionalListCommandsExecute the command LLEN. Summary: Get the length of a list Group: list Requires Redis 1.0.0- Specified by:
llenin interfaceTransactionalListCommands<K,V>- Parameters:
key- the key
-
lmove
public void lmove(K source, K destination, Position positionInSource, Position positionInDestination)
Description copied from interface:TransactionalListCommandsExecute the command LMOVE. Summary: Pop an element from a list, push it to another list and return it Group: list Requires Redis 6.2.0- Specified by:
lmovein interfaceTransactionalListCommands<K,V>- Parameters:
source- the keydestination- the keypositionInSource- the position of the element to pop in the source (LEFT: first element, RIGHT: last element)positionInDestination- the position of the element to insert in the destination (LEFT: first element, RIGHT: last element)
-
lmpop
public void lmpop(Position position, K... keys)
Description copied from interface:TransactionalListCommandsExecute the command LMPOP. Summary: Pop one element from the first non-empty list Group: list Requires Redis 7.0.0- Specified by:
lmpopin interfaceTransactionalListCommands<K,V>- Parameters:
position- the position of the item to pop (LEFT: beginning ot the list, RIGHT: end of the list)keys- the keys from which the item will be popped, must not be empty
-
lmpop
public void lmpop(Position position, int count, K... keys)
Description copied from interface:TransactionalListCommandsExecute the command LMPOP. Summary: Popcountelements from the first non-empty list Group: list Requires Redis 7.0.0- Specified by:
lmpopin interfaceTransactionalListCommands<K,V>- Parameters:
position- the position of the item to pop (LEFT: beginning ot the list, RIGHT: end of the list)count- the number of items to popkeys- the keys from which the item will be popped, must not be empty
-
lpop
public void lpop(K key)
Description copied from interface:TransactionalListCommandsExecute the command LPOP. Summary: Remove and get the first elements in a list Group: list Requires Redis 1.0.0- Specified by:
lpopin interfaceTransactionalListCommands<K,V>- Parameters:
key- the key
-
lpop
public void lpop(K key, int count)
Description copied from interface:TransactionalListCommandsExecute the command LPOP. Summary: Remove and get the first elements in a list Group: list Requires Redis 1.0.0- Specified by:
lpopin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keycount- the number of element to pop
-
lpos
public void lpos(K key, V element)
Description copied from interface:TransactionalListCommandsExecute the command LPOS. Summary: Return the index of matching elements on a list Group: list Requires Redis 6.0.6- Specified by:
lposin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyelement- the element to find
-
lpos
public void lpos(K key, V element, LPosArgs args)
Description copied from interface:TransactionalListCommandsExecute the command LPOS. Summary: Return the index of matching elements on a list Group: list Requires Redis 6.0.6- Specified by:
lposin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyelement- the element to findargs- the extra command parameter
-
lpos
public void lpos(K key, V element, int count)
Description copied from interface:TransactionalListCommandsExecute the command LPOS. Summary: Return the index of matching elements on a list Group: list Requires Redis 6.0.6- Specified by:
lposin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyelement- the element to findcount- the number of occurrence to find
-
lpos
public void lpos(K key, V element, int count, LPosArgs args)
Description copied from interface:TransactionalListCommandsExecute the command LPOS. Summary: Return the index of matching elements on a list Group: list Requires Redis 6.0.6- Specified by:
lposin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyelement- the element to findcount- the number of occurrence to find
-
lpush
public void lpush(K key, V... elements)
Description copied from interface:TransactionalListCommandsExecute the command LPUSH. Summary: Prepend one or multiple elements to a list Group: list Requires Redis 1.0.0- Specified by:
lpushin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyelements- the elements to add
-
lpushx
public void lpushx(K key, V... elements)
Description copied from interface:TransactionalListCommandsExecute the command LPUSHX. Summary: Prepend an element to a list, only if the list exists Group: list Requires Redis 2.2.0- Specified by:
lpushxin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyelements- the elements to add
-
lrange
public void lrange(K key, long start, long stop)
Description copied from interface:TransactionalListCommandsExecute the command LRANGE. Summary: Get a range of elements from a list Group: list Requires Redis 1.0.0- Specified by:
lrangein interfaceTransactionalListCommands<K,V>- Parameters:
key- the keystart- the starting positionstop- the last position
-
lrem
public void lrem(K key, long count, V element)
Description copied from interface:TransactionalListCommandsExecute the command LREM. Summary: Remove elements from a list Group: list Requires Redis 1.0.0- Specified by:
lremin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keycount- the number of occurence to remove, following the given rules: if count > 0: Remove elements equal to element moving from head to tail. if count < 0: Remove elements equal to element moving from tail to head. if count = 0: Remove all elements equal to element.element- the element to remove
-
lset
public void lset(K key, long index, V element)
Description copied from interface:TransactionalListCommandsExecute the command LSET. Summary: Set the value of an element in a list by its index Group: list Requires Redis 1.0.0- Specified by:
lsetin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyindex- the indexelement- the element to insert
-
ltrim
public void ltrim(K key, long start, long stop)
Description copied from interface:TransactionalListCommandsExecute the command LTRIM. Summary: Trim a list to the specified range Group: list Requires Redis 1.0.0- Specified by:
ltrimin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keystart- the starting indexstop- the last index
-
rpop
public void rpop(K key)
Description copied from interface:TransactionalListCommandsExecute the command RPOP. Summary: Remove and get the last elements in a list Group: list Requires Redis 1.0.0- Specified by:
rpopin interfaceTransactionalListCommands<K,V>- Parameters:
key- the key
-
rpop
public void rpop(K key, int count)
Description copied from interface:TransactionalListCommandsExecute the command RPOP. Summary: Remove and get the last elements in a list Group: list Requires Redis 1.0.0- Specified by:
rpopin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keycount- the number of element to pop
-
rpoplpush
@Deprecated public void rpoplpush(K source, K destination)
Deprecated.Description copied from interface:TransactionalListCommandsExecute the command RPOPLPUSH. Summary: Remove the last element in a list, prepend it to another list and return it Group: list Requires Redis 1.2.0- Specified by:
rpoplpushin interfaceTransactionalListCommands<K,V>- Parameters:
source- the keydestination- the key
-
rpush
public void rpush(K key, V... values)
Description copied from interface:TransactionalListCommandsExecute the command RPUSH. Summary: Append one or multiple elements to a list Group: list Requires Redis 1.0.0- Specified by:
rpushin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyvalues- the values to add to the list
-
rpushx
public void rpushx(K key, V... values)
Description copied from interface:TransactionalListCommandsExecute the command RPUSHX. Summary: Append an element to a list, only if the list exists Group: list Requires Redis 2.2.0- Specified by:
rpushxin interfaceTransactionalListCommands<K,V>- Parameters:
key- the keyvalues- the values to add to the list
-
-