Example usage for org.springframework.integration.file.tail ApacheCommonsFileTailingMessageProducer setEnd

List of usage examples for org.springframework.integration.file.tail ApacheCommonsFileTailingMessageProducer setEnd

Introduction

In this page you can find the example usage for org.springframework.integration.file.tail ApacheCommonsFileTailingMessageProducer setEnd.

Prototype

public void setEnd(boolean end) 

Source Link

Document

If true, tail from the end of the file, otherwise include all lines from the beginning.

Usage

From source file:org.springframework.integration.file.tail.FileTailingMessageProducerTests.java

@Test
public void testApache() throws Exception {
    ApacheCommonsFileTailingMessageProducer adapter = new ApacheCommonsFileTailingMessageProducer();
    adapter.setPollingDelay(100);/*  ww w. ja va  2 s  .  c  o  m*/
    adapter.setEnd(false);
    testGuts(adapter, "tailer");
}