public static class JournalSegmentDescriptor.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
JournalSegmentDescriptor |
build()
Builds the segment descriptor.
|
JournalSegmentDescriptor.Builder |
withId(long id)
Sets the segment identifier.
|
JournalSegmentDescriptor.Builder |
withIndex(long index)
Sets the segment index.
|
JournalSegmentDescriptor.Builder |
withMaxEntries(int maxEntries)
Sets the maximum number of entries in the segment.
|
JournalSegmentDescriptor.Builder |
withMaxSegmentSize(int maxSegmentSize)
Sets maximum count of the segment.
|
public JournalSegmentDescriptor.Builder withId(long id)
id - The segment identifier.public JournalSegmentDescriptor.Builder withIndex(long index)
index - The segment starting index.public JournalSegmentDescriptor.Builder withMaxSegmentSize(int maxSegmentSize)
maxSegmentSize - The maximum count of the segment.public JournalSegmentDescriptor.Builder withMaxEntries(int maxEntries)
maxEntries - The maximum number of entries in the segment.public JournalSegmentDescriptor build()
Copyright © 2013–2018. All rights reserved.