private final class FsDefaultManager.ScheduledModel extends FsDefaultModel
synchronization by "observing" its
touched property.
Extending its sub-class to register for updates to the touched
property is simpler, faster and requires a smaller memory footprint than
the alternative observer pattern.| Modifier and Type | Field and Description |
|---|---|
(package private) FsFederatingController |
controller |
(package private) boolean |
touched |
| Constructor and Description |
|---|
FsDefaultManager.ScheduledModel(FsMountPoint mountPoint,
FsModel parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTouched()
Returns
true if and only if some state associated with the
federated file system has been modified so that the
corresponding FsController must not get discarded until
the next sync. |
(package private) void |
schedule(boolean mandatory) |
(package private) void |
setController(FsFederatingController controller) |
void |
setTouched(boolean touched)
Schedules the file system controller for synchronization according
to the given touch status.
|
getMountPoint, getParentFsFederatingController controller
volatile boolean touched
FsDefaultManager.ScheduledModel(FsMountPoint mountPoint, FsModel parent)
public boolean isTouched()
FsModeltrue if and only if some state associated with the
federated file system has been modified so that the
corresponding FsController must not get discarded until
the next sync.
The implementation in the class FsModel always returns
false.
isTouched in class FsModeltrue if and only if some state associated with the
federated file system has been modified so that the
corresponding FsController must not get discarded until
the next sync.void schedule(boolean mandatory)
void setController(FsFederatingController controller)
public void setTouched(boolean touched)
setTouched in class FsModeltouched - the new value of this property.Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.