Mercurial > hg > blitz_condensed
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz.txn; | |
2 | |
3 /** | |
4 An instance of this class never triggers a checkpoint. To all intents | |
5 and purposes it's the null implementation. | |
6 */ | |
7 class NeverTrigger implements CheckpointTrigger { | |
8 NeverTrigger() { | |
9 } | |
10 | |
11 public void loggedCommand() { | |
12 // Do nothing | |
13 } | |
14 | |
15 public void begin() { | |
16 // Do nothing | |
17 } | |
18 | |
19 public void halt() { | |
20 // Do nothing | |
21 } | |
22 | |
23 public boolean checkpointsDisabled() { | |
24 return true; | |
25 } | |
26 } |