Mercurial > hg > blitz_stable
view src/org/dancres/blitz/entry/WriteEscort.java @ 17:46ac1a45718a
Add support for cache partitioning to improve concurrency.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sun, 05 Jul 2009 16:25:18 +0100 |
parents | 3dc0c5604566 |
children |
line wrap: on
line source
package org.dancres.blitz.entry; import net.jini.core.transaction.TransactionException; /** Whenever a write is performed, it needs protection until commit time. This is achieved by escorting the written Entry through the write process with an instance of this type. The Escort is responsible for setting appropriate TxnLocks etc. to achieve the required protection. */ public interface WriteEscort { /** Called before the Entry which is being written actually becomes available in the filesystem. At this point, an ID has been allocated etc. but the Entry is not visible outside of this thread. @return <code>true</code> if the write should proceed, false otherwise */ public boolean writing(OpInfo anOp); }