public class CommonsIOFileMonitorServiceFactory extends Object implements com.github.sworisbreathing.sfmf4j.api.FileMonitorServiceFactory
Constructor and Description |
---|
CommonsIOFileMonitorServiceFactory() |
Modifier and Type | Method and Description |
---|---|
com.github.sworisbreathing.sfmf4j.api.FileMonitorService |
createFileMonitorService()
Creates a new
CommonsIOFileMonitorServiceImpl . |
long |
getPollingInterval()
Gets the polling interval.
|
TimeUnit |
getPollingTimeUnit()
Gets the polling time unit.
|
void |
setPollingInterval(long pollingInterval)
Sets the polling interval.
|
void |
setPollingTimeUnit(TimeUnit pollingTimeUnit)
Sets the polling time unit.
|
public long getPollingInterval()
public void setPollingInterval(long pollingInterval)
pollingInterval
- the polling intervalpublic TimeUnit getPollingTimeUnit()
public void setPollingTimeUnit(TimeUnit pollingTimeUnit)
pollingTimeUnit
- the polling time unitpublic com.github.sworisbreathing.sfmf4j.api.FileMonitorService createFileMonitorService()
CommonsIOFileMonitorServiceImpl
.createFileMonitorService
in interface com.github.sworisbreathing.sfmf4j.api.FileMonitorServiceFactory
pollingInterval
- the polling intervalpollingTimeUnit
- the time unit for the polling interval.CommonsIOFileMonitorServiceImpl
, which wraps a
newly-created FileAlterationMonitor
Copyright © 2013 Steven Swor. All Rights Reserved.