public static final class PollingStrategies.FilesystemWatchBuilder extends Object implements Builder<PollingStrategy>
| Modifier and Type | Method and Description |
|---|---|
PollingStrategy |
build()
Builds a new polling strategy.
|
PollingStrategies.FilesystemWatchBuilder |
executor(ScheduledExecutorService executor)
Sets a custom
executor used to watch filesystem changes on. |
PollingStrategy |
get() |
PollingStrategies.FilesystemWatchBuilder |
modifiers(WatchEvent.Modifier... modifiers)
Add modifiers to be used when registering the
WatchService. |
public PollingStrategies.FilesystemWatchBuilder executor(ScheduledExecutorService executor)
executor used to watch filesystem changes on.
By default single-threaded executor is used.
executor - the custom scheduled executor servicepublic PollingStrategies.FilesystemWatchBuilder modifiers(WatchEvent.Modifier... modifiers)
WatchService.
See Path#register(WatchService, java.nio.file.WatchEvent.Kind[], Modifier...)
Path.register}.modifiers - the modifiers to addpublic PollingStrategy build()
build in interface Builder<PollingStrategy>public PollingStrategy get()
get in interface Builder<PollingStrategy>get in interface Supplier<PollingStrategy>Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.