A scalable tailer powered by Redis.
<dependency>
<groupId>com.mayreh</groupId>
<artifactId>tailer7</artifactId>
<version>0.1.1</version>
</dependency>
compile 'com.mayreh:tailer7:0.1.1'
See also Example.
RedisClient client = RedisClient.create(RedisURI.create("127.0.0.1", 6379));
LogSender sender = new LogSender(client, LogSenderConfig.builder().build());
sender.open();
sender.send("foo", "seeeeeeennnnnnnd");
RedisClient client = RedisClient.create(RedisURI.create("127.0.0.1", 6379));
LogTailer tailer = new LogTailer(
client,
LogTailerConfig.builder().build(),
log -> System.out.println(log.getLine()));
tailer.subscribe("foo");
// => will output "seeeeeeennnnnnnd"