Package org.redisson.api.stream
Interface StreamAddArgs<K,V>
- All Known Implementing Classes:
StreamAddParams
public interface StreamAddArgs<K,V>
Arguments object for RStream.add() method.
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> StreamAddArgs <K, V> Defines entries to addstatic <K,V> StreamAddArgs <K, V> entries(K k1, V v1, K k2, V v2) Defines entries to addstatic <K,V> StreamAddArgs <K, V> entries(K k1, V v1, K k2, V v2, K k3, V v3) Defines entries to addstatic <K,V> StreamAddArgs <K, V> entries(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) Defines entries to addstatic <K,V> StreamAddArgs <K, V> entries(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) Defines entries to addstatic <K,V> StreamAddArgs <K, V> entry(K k1, V v1) Defines entry to addDefine to not create stream automatically if it doesn't exist.trim()Defines strict trimming.Defines non-strict trimming.
-
Method Details
-
noMakeStream
StreamAddArgs<K,V> noMakeStream()Define to not create stream automatically if it doesn't exist.- Returns:
- arguments object
-
trim
StreamTrimStrategyArgs<StreamAddArgs<K,V>> trim()Defines strict trimming.- Returns:
- arguments object
-
trimNonStrict
StreamTrimStrategyArgs<StreamAddArgs<K,V>> trimNonStrict()Defines non-strict trimming.- Returns:
- arguments object
-
entry
Defines entry to add- Type Parameters:
K- key typeV- value type- Parameters:
k1- key to addv1- value to add- Returns:
- arguments object
-
entries
Defines entries to add- Type Parameters:
K- key typeV- value type- Parameters:
k1- 1st key to addv1- 1st value to addk2- 2nd key to addv2- 2nd value to add- Returns:
- arguments object
-
entries
Defines entries to add- Type Parameters:
K- key typeV- value type- Parameters:
k1- 1st key to addv1- 1st value to addk2- 2nd key to addv2- 2nd value to addk3- 3rd key to addv3- 3rd value to add- Returns:
- arguments object
-
entries
Defines entries to add- Type Parameters:
K- key typeV- value type- Parameters:
k1- 1st key to addv1- 1st value to addk2- 2nd key to addv2- 2nd value to addk3- 3rd key to addv3- 3rd value to addk4- 4th key to addv4- 4th key to add- Returns:
- arguments object
-
entries
static <K,V> StreamAddArgs<K,V> entries(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) Defines entries to add- Type Parameters:
K- key typeV- value type- Parameters:
k1- 1st key to addv1- 1st value to addk2- 2nd key to addv2- 2nd value to addk3- 3rd key to addv3- 3rd value to addk4- 4th key to addv4- 4th key to addk5- 5th key to addv5- 5th key to add- Returns:
- arguments object
-
entries
Defines entries to add- Type Parameters:
K- key typeV- value type- Parameters:
entries- entries map to add- Returns:
- arguments object
-