view src/org/dancres/blitz/txn/NeverTrigger.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
line wrap: on
line source

package org.dancres.blitz.txn;

/**
   An instance of this class never triggers a checkpoint.  To all intents
   and purposes it's the null implementation.
 */
class NeverTrigger implements CheckpointTrigger {
    NeverTrigger() {
    }

    public void loggedCommand() {
        // Do nothing
    }

    public void begin() {
        // Do nothing
    }

    public void halt() {
        // Do nothing
    }

    public boolean checkpointsDisabled() {
        return true;
    }
}