Supplier<PollingStrategy>public static final class PollingStrategies.FilesystemWatchBuilder extends Object implements Supplier<PollingStrategy>
| Modifier and Type | Method | 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() |
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 PollingStrategy build()
public PollingStrategy get()
get in interface Supplier<PollingStrategy>Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.