TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.fs
Class FsDefaultManager.ScheduledModel

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsModel
      extended by de.schlichtherle.truezip.fs.FsDefaultModel
          extended by de.schlichtherle.truezip.fs.FsDefaultManager.ScheduledModel
Enclosing class:
FsDefaultManager

private final class FsDefaultManager.ScheduledModel
extends FsDefaultModel

A model which schedules its controller for 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.


Field Summary
(package private)  FsFederatingController controller
           
 
Constructor Summary
FsDefaultManager.ScheduledModel(FsMountPoint mountPoint, FsController<?> parent, FsCompositeDriver driver)
           
 
Method Summary
(package private)  void schedule(boolean unconditional)
           
 void setTouched(boolean touched)
          Schedules the file system controller for synchronization according to the given touch status.
 
Methods inherited from class de.schlichtherle.truezip.fs.FsDefaultModel
getMountPoint, getParent, isTouched
 
Methods inherited from class de.schlichtherle.truezip.fs.FsModel
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

controller

final FsFederatingController controller
Constructor Detail

FsDefaultManager.ScheduledModel

FsDefaultManager.ScheduledModel(FsMountPoint mountPoint,
                                @CheckForNull
                                FsController<?> parent,
                                FsCompositeDriver driver)
Method Detail

setTouched

public void setTouched(boolean touched)
Schedules the file system controller for synchronization according to the given touch status.

Overrides:
setTouched in class FsDefaultModel
Parameters:
touched - the new value of this property.

schedule

void schedule(boolean unconditional)

TrueZIP Kernel 7.0-rc2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.