java.util.function.Supplier<PollingStrategy>
public static final class PollingStrategies.FilesystemWatchBuilder extends java.lang.Object implements java.util.function.Supplier<PollingStrategy>
Modifier and Type | Method | Description |
---|---|---|
PollingStrategy |
build() |
Builds a new polling strategy.
|
PollingStrategies.FilesystemWatchBuilder |
executor(java.util.concurrent.ScheduledExecutorService executor) |
Sets a custom
executor used to watch filesystem changes on. |
PollingStrategy |
get() |
public PollingStrategies.FilesystemWatchBuilder executor(java.util.concurrent.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 java.util.function.Supplier<PollingStrategy>
Copyright © 2018 Oracle Corporation. All rights reserved.