Class Tailer.Builder

All Implemented Interfaces:
IOSupplier<Tailer>
Enclosing class:
Tailer

Builds a new Tailer.

For example:


 Tailer t = Tailer.builder()
   .setPath(path)
   .setCharset(StandardCharsets.UTF_8)
   .setDelayDuration(Duration.ofSeconds(1))
   .setExecutorService(Executors.newSingleThreadExecutor(Builder::newDaemonThread))
   .setReOpen(false)
   .setStartThread(true)
   .setTailable(tailable)
   .setTailerListener(tailerListener)
   .setTailFromEnd(false)
   .get();
 
Since:
2.12.0
See Also: