Mercurial > hg > blitz_stable
view 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 |
line wrap: on
line source
package org.dancres.blitz.remote; import java.io.Serializable; import org.dancres.blitz.EntryChit; /** * Used to contain a lease and a first chunk of EntryChits destined for a MatchSetImpl or * an AdminIteratorImpl. The first batch is piggy-backed onto the initial request to create * a view as an optimization for saving a further roundtrip which would otherwise be * required to get the first batch of EntryChits (which might also be the last of course * if the set is less than the chunk size). */ public class ViewResult implements Serializable { private LeaseImpl theLease; private EntryChit[] theInitialBatch; ViewResult(LeaseImpl aLease, EntryChit[] anInitialBatch) { theLease = aLease; theInitialBatch = anInitialBatch; } LeaseImpl getLease() { return theLease; } EntryChit[] getInitialBatch() { return theInitialBatch; } }