public interface SmbWatchHandle extends AutoCloseable, Callable<List<FileNotifyInformation>>
Modifier and Type | Method and Description |
---|---|
List<FileNotifyInformation> |
call() |
void |
close() |
List<FileNotifyInformation> |
watch()
Get the next set of changes
Will block until the server returns a set of changes that match the given filter.
|
List<FileNotifyInformation> watch() throws CIFSException
close()
when no longer
needed.
Closing the context should cancel a pending notify request, but that does not seem to work reliable in all
implementations.
Changes in between these calls (as long as the file is open) are buffered by the server, so iteratively calling
this method should provide all changes (size of that buffer can be adjusted through
Configuration.getNotifyBufferSize()
).
If the server cannot fulfill the request because the changes did not fit the buffer
it will return an empty list of changes.CIFSException
List<FileNotifyInformation> call() throws CIFSException
call
in interface Callable<List<FileNotifyInformation>>
CIFSException
Callable.call()
void close() throws CIFSException
close
in interface AutoCloseable
CIFSException
AutoCloseable.close()
Copyright © 2017. All rights reserved.