public interface Follower extends CommonFollower<Follower,LogWatch>, MessageProducer<Follower>
CommonFollower's functions, this allows for merging
followers.| Modifier and Type | Method and Description |
|---|---|
Future<Message> |
expect(C condition)
Will return a future that will only return when a message arrives that
makes the given condition return true.
|
Future<Message> |
expect(C condition,
MessageAction<S> action)
Will return a future that will only return when a message arrives that
makes the given condition return true, at which point it asynchronously
executes a particular action.
|
LogWatch |
getFollowed()
Retrieve the log watch that is being followed.
|
Message |
tag(String tagLine)
Mark the current location in the tail by a custom message.
|
getMessages, getMessages, getMessages, getMessages, mergeWith, mergeWith, write, write, write, write, write, write, write, writecountConsumers, countMetrics, getMetric, getMetricId, isConsuming, isMeasuring, isMeasuring, startConsuming, startMeasuring, stopConsuming, stopMeasuring, stopMeasuringisStopped, stopmessageReceivedLogWatch getFollowed()
LogWatch whose LogWatch.startFollowing() was
called to obtain reference to this follower.Message tag(String tagLine)
MessageDeliveryStatus.INCOMING. If a tag is placed after such
message is created and the message only becomes
MessageDeliveryStatus.ACCEPTED later, the tag will still follow.tagLine - Text of the message.IllegalStateException - When already MessageConsumer.isStopped().Future<Message> expect(C condition)
condition - Condition that needs to be true for the future to unblock.Future<Message> expect(C condition, MessageAction<S> action)
condition - Condition that needs to be true for the future to unblock.action - Action to execute when the condition becomes true.Copyright © 2015. All rights reserved.