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

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

Introduction

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

Prototype

public void setPollingDelay(long pollingDelay) 

Source Link

Document

The delay between checks of the file for new content in milliseconds.

Usage

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

@Test
public void testApache() throws Exception {
    ApacheCommonsFileTailingMessageProducer adapter = new ApacheCommonsFileTailingMessageProducer();
    adapter.setPollingDelay(100);
    adapter.setEnd(false);/*  w  w  w . j  ava2 s.com*/
    testGuts(adapter, "tailer");
}