@ThreadSafe public final class FsControllerSyncVisitor extends Object implements net.java.truecommons.shed.Visitor<FsController,FsSyncException>
FsController.sync(net.java.truecommons.shed.BitField<net.java.truevfs.kernel.spec.FsSyncOption>) operation with the
options provided to its
constructor on any given file
system controller.
Subclasses should be thread-safe.
| Constructor and Description |
|---|
FsControllerSyncVisitor(net.java.truecommons.shed.BitField<FsSyncOption> options)
Constructs a controller sync visitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visit(FsController controller)
Calls
FsController.sync(net.java.truecommons.shed.BitField<net.java.truevfs.kernel.spec.FsSyncOption>) on the given controller with the options
provided to the constructor. |
public FsControllerSyncVisitor(net.java.truecommons.shed.BitField<FsSyncOption> options)
options - the options to use for
syncing any given file system
controller.public void visit(FsController controller) throws FsSyncException
FsController.sync(net.java.truecommons.shed.BitField<net.java.truevfs.kernel.spec.FsSyncOption>) on the given controller with the options
provided to the constructor.visit in interface net.java.truecommons.shed.Visitor<FsController,FsSyncException>controller - the file system controller to sync().FsSyncException - if sync()ing the file system failed for
some reason.Copyright © 2005–2014 Schlichtherle IT Services. All rights reserved.