Package org.redisson.api.stream
Class StreamCreateGroupParams
java.lang.Object
org.redisson.api.stream.StreamCreateGroupParams
- All Implemented Interfaces:
StreamCreateGroupArgs
- Author:
- Nikita Koksharov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionentriesRead
(int amount) Defines entries_read argumentint
getId()
getName()
id
(StreamMessageId id) Defines Stream Message ID.boolean
Defines whether a stream should be created if it doesn't exist.
-
Constructor Details
-
StreamCreateGroupParams
-
-
Method Details
-
entriesRead
Description copied from interface:StreamCreateGroupArgs
Defines entries_read argument- Specified by:
entriesRead
in interfaceStreamCreateGroupArgs
- Parameters:
amount
- entries_read argument- Returns:
- arguments object
-
makeStream
Description copied from interface:StreamCreateGroupArgs
Defines whether a stream should be created if it doesn't exist.- Specified by:
makeStream
in interfaceStreamCreateGroupArgs
- Returns:
- arguments object
-
id
Description copied from interface:StreamCreateGroupArgs
Defines Stream Message ID. Only new messages after defined streamid
will be available for consumers of this group.StreamMessageId.NEWEST
is used for messages arrived since the moment of group creationStreamMessageId.ALL
is used for all messages added before and after the moment of group creation- Specified by:
id
in interfaceStreamCreateGroupArgs
- Parameters:
id
- Stream Message ID- Returns:
- arguments object
-
getName
-
isMakeStream
public boolean isMakeStream() -
getEntriesRead
public int getEntriesRead() -
getId
-