Mercurial > hg > blitz_stable
comparison src/org/dancres/blitz/entry/WriteEscort.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.entry; | |
2 | |
3 import net.jini.core.transaction.TransactionException; | |
4 | |
5 /** | |
6 Whenever a write is performed, it needs protection until commit time. | |
7 This is achieved by escorting the written Entry through the write process | |
8 with an instance of this type. The Escort is responsible for setting | |
9 appropriate TxnLocks etc. to achieve the required protection. | |
10 */ | |
11 public interface WriteEscort { | |
12 /** | |
13 Called before the Entry which is being written actually becomes | |
14 available in the filesystem. At this point, an ID has been allocated | |
15 etc. but the Entry is not visible outside of this thread. | |
16 | |
17 @return <code>true</code> if the write should proceed, false otherwise | |
18 */ | |
19 public boolean writing(OpInfo anOp); | |
20 } |