Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/SearchTask.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; | |
2 | |
3 import java.io.IOException; | |
4 | |
5 import org.dancres.struct.LinkedInstance; | |
6 | |
7 import org.dancres.blitz.entry.SearchVisitor; | |
8 import org.dancres.blitz.entry.LongtermOffer; | |
9 | |
10 import org.dancres.blitz.oid.OID; | |
11 | |
12 import org.dancres.blitz.mangler.MangledEntry; | |
13 | |
14 /** | |
15 Every search carried out by Blitz is represented by an instance of this | |
16 class. <P> | |
17 | |
18 The search requirement for such a task can be satisfied by a disk/cache | |
19 based search or the arrival of a new Entry written by a client. | |
20 | |
21 @see org.dancres.blitz.SearchTasks | |
22 */ | |
23 public interface SearchTask extends LinkedInstance { | |
24 public SearchVisitor getVisitor(); | |
25 | |
26 public void destroy(); | |
27 | |
28 /** | |
29 Called to indicate that a new Entry has been written to cache. | |
30 Details of the Entry's identification and type are passed in to | |
31 allow the task to perform matching or other appropriate actions. | |
32 | |
33 @return <code>true</code> if processing occurred. If the Entry | |
34 being received was no longer available, searching should stop. | |
35 If in doubt, the implementer should return <code>true</code>. | |
36 */ | |
37 public boolean writeReceived(LongtermOffer anOffer) throws IOException; | |
38 } |