comparison src/org/dancres/blitz/arc/BackingStore.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.arc;
2
3 import java.io.IOException;
4
5 import org.dancres.blitz.cache.Identifiable;
6 import org.dancres.blitz.cache.Identifier;
7
8 /**
9 Implementers of this class will be able to store and recover entities based
10 on an Identifier.
11 */
12 public interface BackingStore {
13 /**
14 @return Identifiable associated with Identifier or <code>null</code>
15 if it cannot be found.
16 */
17 public Identifiable load(Identifier anId) throws IOException;
18
19 /**
20 Must deal with handling of delete, update and write. All saves
21 MUST be done asynchronously. i.e. ArcCache does not expect this
22 method to block. This is required to avoid the risk of deadlock under
23 various circumstances.
24 */
25 public void save(Identifiable anIdentifiable) throws IOException;
26
27 public String getName();
28 }