Package org.redisson.api.stream
Interface StreamAddArgs<K,V>
-
public interface StreamAddArgs<K,V>
Arguments object for RStream.add() method.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description static <K,V>
StreamAddArgs<K,V>entries(Map<K,V> entries)
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 addStreamAddArgs<K,V>
noMakeStream()
Define to not create stream automatically if it doesn't exist.StreamTrimStrategyArgs<StreamAddArgs<K,V>>
trim()
Defines strict trimming.StreamAddArgs<K,V>
trim(TrimStrategy strategy, int threshold)
Deprecated.StreamAddArgs<K,V>
trim(TrimStrategy strategy, int threshold, int limit)
Deprecated.StreamTrimStrategyArgs<StreamAddArgs<K,V>>
trimNonStrict()
Defines non-strict trimming.StreamAddArgs<K,V>
trimStrict(TrimStrategy strategy, int threshold)
Deprecated.
-
-
-
Method Detail
-
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
-
trim
@Deprecated StreamAddArgs<K,V> trim(TrimStrategy strategy, int threshold)
Deprecated.
-
trim
@Deprecated StreamAddArgs<K,V> trim(TrimStrategy strategy, int threshold, int limit)
Deprecated.
-
trimStrict
@Deprecated StreamAddArgs<K,V> trimStrict(TrimStrategy strategy, int threshold)
Deprecated.
-
entry
static <K,V> StreamAddArgs<K,V> entry(K k1, V v1)
Defines entry to add- Type Parameters:
K
- - key typeV
- - value type- Parameters:
k1
- - key to addv1
- - value to add- Returns:
- arguments object
-
entries
static <K,V> StreamAddArgs<K,V> entries(K k1, V v1, K k2, V v2)
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
static <K,V> StreamAddArgs<K,V> entries(K k1, V v1, K k2, V v2, K k3, V v3)
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
static <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 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
static <K,V> StreamAddArgs<K,V> entries(Map<K,V> entries)
Defines entries to add- Type Parameters:
K
- - key typeV
- - value type- Parameters:
entries
- - entries map to add- Returns:
- arguments object
-
-