public final class DefaultLogWatchBuilder extends LogWatchBuilder
LogWatch. Unless overriden by the user, the
instance will have the following properties:
SplitlogMessagesRejectingCondition.AllFollowerMessagesAcceptingCondition.DEFAULT_DELAY_BETWEEN_READS_IN_MILLISECONDS, DEFAULT_DELAY_BETWEEN_SWEEPS_IN_MILLISECONDS, DEFAULT_READ_BUFFER_SIZE_IN_BYTES| Constructor and Description |
|---|
DefaultLogWatchBuilder() |
| Modifier and Type | Method and Description |
|---|---|
LogWatch |
build()
Build the log watch with previously defined properties, or defaults where
not overriden.
|
Follower |
buildFollowing()
Build the log watch with previously defined properties, or defaults where
not overriden, and immediately start listening for
Messages. |
Follower |
buildFollowingWith(TailSplitter splitter)
Build the log watch with previously defined properties, or defaults where
not overriden, and immediately start listening for
Messages |
LogWatch |
buildWith(TailSplitter splitter)
Build the log watch with previously defined properties, or defaults where
not overriden.
|
closingAfterReading, getCapacityLimit, getDefault, getDelayBetweenReads, getDelayBetweenSweeps, getFileToWatch, getGateCondition, getReadingBufferSize, getStorageCondition, ignoringPreexistingContent, isClosingBetweenReads, isReadingFromBeginning, limitCapacityTo, toString, watchingFile, withDelayBetweenReads, withDelayBetweenSweeps, withGateCondition, withReadingBufferSize, withStorageConditionpublic LogWatch build()
LogWatchBuilderLogWatchBuilder.getFileToWatch() until after LogWatch.startFollowing()
or
MessageProducer.startConsuming(com.github.triceo.splitlog.api.MessageListener)
.build in class LogWatchBuilderpublic Follower buildFollowing()
LogWatchBuilderMessages.buildFollowing in class LogWatchBuilderLogWatch can be retrieved by
Follower.getFollowed().public Follower buildFollowingWith(TailSplitter splitter)
LogWatchBuilderMessagesbuildFollowingWith in class LogWatchBuildersplitter - The splitter instance to use for the log watch instead of the
default.LogWatch can be retrieved by
Follower.getFollowed().public LogWatch buildWith(TailSplitter splitter)
LogWatchBuilderLogWatchBuilder.getFileToWatch() until after LogWatch.startFollowing()
or
MessageProducer.startConsuming(com.github.triceo.splitlog.api.MessageListener)
.buildWith in class LogWatchBuildersplitter - The splitter instance to use for the log watch instead of the
default.LogWatch.startFollowing() or
MessageProducer.startConsuming(com.github.triceo.splitlog.api.MessageListener)
.Copyright © 2014. All rights reserved.