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
Message s. |
Follower |
buildFollowingWith(TailSplitter splitter)
Build the log watch with previously defined properties, or defaults where
not overriden, and immediately start listening for
Message s |
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, withStorageCondition
public LogWatch build()
LogWatchBuilder
LogWatchBuilder.getFileToWatch()
until after LogWatch.startFollowing()
or
MessageProducer.startConsuming(com.github.triceo.splitlog.api.MessageListener)
.build
in class LogWatchBuilder
public Follower buildFollowing()
LogWatchBuilder
Message
s.buildFollowing
in class LogWatchBuilder
LogWatch
can be retrieved by
Follower.getFollowed()
.public Follower buildFollowingWith(TailSplitter splitter)
LogWatchBuilder
Message
sbuildFollowingWith
in class LogWatchBuilder
splitter
- 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)
LogWatchBuilder
LogWatchBuilder.getFileToWatch()
until after LogWatch.startFollowing()
or
MessageProducer.startConsuming(com.github.triceo.splitlog.api.MessageListener)
.buildWith
in class LogWatchBuilder
splitter
- 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.