public interface StreamCreator
| Modifier and Type | Interface and Description |
|---|---|
static class |
StreamCreator.LeaderLocator
The leader locator strategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Create the stream.
|
StreamCreator |
leaderLocator(StreamCreator.LeaderLocator leaderLocator)
The
StreamCreator.LeaderLocator strategy. |
StreamCreator |
maxAge(Duration maxAge)
The maximum age of a stream before it gets truncated.
|
StreamCreator |
maxLengthBytes(ByteCapacity byteCapacity)
The maximum size of the stream before it gets truncated.
|
StreamCreator |
maxSegmentSizeBytes(ByteCapacity byteCapacity)
The maximum size of each stream segments.
|
StreamCreator |
stream(String stream)
The name of the stream
|
StreamCreator stream(String stream)
stream - StreamCreator maxLengthBytes(ByteCapacity byteCapacity)
byteCapacity - StreamCreator maxSegmentSizeBytes(ByteCapacity byteCapacity)
byteCapacity - StreamCreator maxAge(Duration maxAge)
maxAge - StreamCreator leaderLocator(StreamCreator.LeaderLocator leaderLocator)
StreamCreator.LeaderLocator strategy.leaderLocator - void create()
This method is idempotent: the stream exists when it returns.
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.