1 package com.github.triceo.splitlog.conditions;
2
3 import com.github.triceo.splitlog.api.Follower;
4 import com.github.triceo.splitlog.api.Message;
5 import com.github.triceo.splitlog.api.MessageDeliveryStatus;
6 import com.github.triceo.splitlog.api.MidDeliveryMessageCondition;
7 import com.github.triceo.splitlog.api.SimpleMessageCondition;
8
9
10
11
12 public final class AllFollowerMessagesAcceptingCondition implements MidDeliveryMessageCondition<Follower>,
13 SimpleMessageCondition {
14
15 public static final AllFollowerMessagesAcceptingCondition INSTANCE = new AllFollowerMessagesAcceptingCondition();
16
17 private AllFollowerMessagesAcceptingCondition() {
18
19 }
20
21 @Override
22 public boolean accept(final Message evaluate) {
23 return true;
24 }
25
26 @Override
27 public boolean accept(final Message evaluate, final MessageDeliveryStatus status, final Follower source) {
28 return this.accept(evaluate);
29 }
30
31 }