パッケージ jcifs
インタフェース SmbWatchHandle
-
- すべてのスーパーインタフェース:
AutoCloseable,Callable<List<FileNotifyInformation>>
public interface SmbWatchHandle extends AutoCloseable, Callable<List<FileNotifyInformation>>
Handle for receiving change notifications from an SMB server- 作成者:
- mbechler
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 List<FileNotifyInformation>call()voidclose()List<FileNotifyInformation>watch()Get the next set of changes Will block until the server returns a set of changes that match the given filter.
-
-
-
メソッドの詳細
-
watch
List<FileNotifyInformation> watch() throws CIFSException
Get the next set of changes Will block until the server returns a set of changes that match the given filter. The file will be automatically opened if it is not and should be closed withclose()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 throughConfiguration.getNotifyBufferSize()). If the server cannot fulfill the request because the changes did not fit the buffer it will return an empty list of changes.- 戻り値:
- changes since the last invocation
- 例外:
CIFSException
-
call
List<FileNotifyInformation> call() throws CIFSException
- 定義:
callインタフェース内Callable<List<FileNotifyInformation>>- 例外:
CIFSException- 関連項目:
Callable.call()
-
close
void close() throws CIFSException- 定義:
closeインタフェース内AutoCloseable- 例外:
CIFSException- 関連項目:
AutoCloseable.close()
-
-