EventStream} that operates against a directory
with chunk files.
| Modifier and Type | Field and Description |
|---|---|
| private final StreamBarrier | |
| private long | |
| private ChunkParser | |
| private static final Comparator | |
| private volatile Consumer | |
| private final PlatformRecording | |
| private final RepositoryFiles | |
| private RecordedEvent[] | |
| private final AtomicLong | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | EventDirectoryStream(Path p, PlatformRecording recording, List<Configuration> configurations, boolean allowSubDirectories)
|
| Modifier and Type | Method and Description |
|---|---|
| public StreamBarrier | |
| public void | close()
Implements abstract jdk. Implements jdk. Releases all resources associated with this stream. |
| protected boolean | isRecordingStream()
Implements abstract jdk.
|
| private void | |
| private void | |
| protected void | |
| private void | |
| protected void | |
| private boolean | |
| public void | |
| public void | start()
Implements abstract jdk. Implements jdk. Starts processing of actions. |
| public void | startAsync()
Implements abstract jdk. Implements jdk. Starts asynchronous processing of actions. |
| barrier | back to summary |
|---|---|
| private final StreamBarrier barrier | |
| currentChunkStartNanos | back to summary |
|---|---|
| private long currentChunkStartNanos | |
| currentParser | back to summary |
|---|---|
| private ChunkParser currentParser | |
| EVENT_COMPARATOR | back to summary |
|---|---|
| private static final Comparator<? super RecordedEvent> EVENT_COMPARATOR | |
| onCompleteHandler | back to summary |
|---|---|
| private volatile Consumer<Long> onCompleteHandler | |
| recording | back to summary |
|---|---|
| private final PlatformRecording recording | |
| repositoryFiles | back to summary |
|---|---|
| private final RepositoryFiles repositoryFiles | |
| sortedCache | back to summary |
|---|---|
| private RecordedEvent[] sortedCache | |
| streamId | back to summary |
|---|---|
| private final AtomicLong streamId | |
| threadExclusionLevel | back to summary |
|---|---|
| private int threadExclusionLevel | |
| EventDirectoryStream | back to summary |
|---|---|
| public EventDirectoryStream(Path p, PlatformRecording recording, List<Configuration> configurations, boolean allowSubDirectories) throws IOException | |
| activateStreamBarrier | back to summary |
|---|---|
| public StreamBarrier activateStreamBarrier() | |
| close | back to summary |
|---|---|
| public void close() Implements abstract jdk. Implements jdk. Doc from jdk. Releases all resources associated with this stream. If a stream is started, asynchronously or synchronously, it is stopped immediately or after the next flush. This method does NOT guarantee that all registered actions are completed before return. Closing a previously closed stream has no effect.
| |
| isRecordingStream | back to summary |
|---|---|
| protected boolean isRecordingStream() Implements abstract jdk. | |
| logStreamEnd | back to summary |
|---|---|
| private void logStreamEnd(String text) | |
| onComplete | back to summary |
|---|---|
| private void onComplete(long epochNanos) | |
| process | back to summary |
|---|---|
| protected void process() throws IOException Implements abstract jdk.
| |
| processOrdered | back to summary |
|---|---|
| private void processOrdered(Dispatcher c) throws IOException | |
| processRecursionSafe | back to summary |
|---|---|
| protected void processRecursionSafe() throws IOException | |
| processUnordered | back to summary |
|---|---|
| private boolean processUnordered(Dispatcher c) throws IOException | |
| setChunkCompleteHandler | back to summary |
|---|---|
| public void setChunkCompleteHandler(Consumer<Long> handler) | |
| start | back to summary |
|---|---|
| public void start() Implements abstract jdk. Implements jdk. Doc from jdk. Starts processing of actions. Actions are performed in the current thread.
To stop the stream, use the
| |
| startAsync | back to summary |
|---|---|
| public void startAsync() Implements abstract jdk. Implements jdk. Doc from jdk. Starts asynchronous processing of actions. Actions are performed in a single separate thread.
To stop the stream, use the
| |