comparison src/org/dancres/blitz/txn/CheckpointTrigger.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
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz.txn;
2
3 import org.dancres.blitz.ActiveObject;
4
5 /**
6 <p>Checkpoints can be triggered as the result of a number of different
7 stimuli. Typically, these stimuli are the number of operations since the
8 last checkpoint or the time since the last checkpoint.</p>
9
10 <p>Instances of this class encapsulate a particular policy with respect to
11 when a checkpoint should be triggered. When they determine that a
12 checkpoint is required, they invoke the <code>sync</code> of a
13 <code>Checkpointer</code> instance (typically passed in at construction
14 time). This call should be made in an independent thread - i.e. it is
15 <em>not</em> appropriate for CheckpointTrigger methods to block.</p>
16
17 @see org.dancres.blitz.txn.Checkpointer
18 */
19 public interface CheckpointTrigger extends ActiveObject {
20 public void loggedCommand();
21
22 /**
23 @return <code>true</code> if checkpointing is not allowed.
24 */
25 public boolean checkpointsDisabled();
26 }