Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache » activemq » kaha » impl » async » [javadoc | source]
public final class: ControlFile [javadoc | source]
Use to reliably store fixed sized state data. It stores the state in record that is versioned and repeated twice in the file so that a failure in the middle of the write of the first or second record do not not result in an unknown state.
 public ControlFile(File file,
    int recordSize) throws IOException 
Method from org.apache.activemq.kaha.impl.async.ControlFile Summary:
dispose,   isDisposed,   load,   lock,   store,   unlock
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.kaha.impl.async.ControlFile Detail:
 public  void dispose() 
 public boolean isDisposed() 
 public synchronized ByteSequence load() throws IOException 
 public  void lock() throws IOException 
    Locks the control file.
 public  void store(ByteSequence data,
    boolean sync) throws IOException 
 public  void unlock() throws IOException 
    Un locks the control file.