comparison src/org/dancres/blitz/remote/ViewResult.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.remote;
2
3 import java.io.Serializable;
4
5 import org.dancres.blitz.EntryChit;
6
7 /**
8 * Used to contain a lease and a first chunk of EntryChits destined for a MatchSetImpl or
9 * an AdminIteratorImpl. The first batch is piggy-backed onto the initial request to create
10 * a view as an optimization for saving a further roundtrip which would otherwise be
11 * required to get the first batch of EntryChits (which might also be the last of course
12 * if the set is less than the chunk size).
13 */
14 public class ViewResult implements Serializable {
15 private LeaseImpl theLease;
16 private EntryChit[] theInitialBatch;
17
18 ViewResult(LeaseImpl aLease, EntryChit[] anInitialBatch) {
19 theLease = aLease;
20 theInitialBatch = anInitialBatch;
21 }
22
23 LeaseImpl getLease() {
24 return theLease;
25 }
26
27 EntryChit[] getInitialBatch() {
28 return theInitialBatch;
29 }
30 }