|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.outrigger.OutriggerServerImpl.IteratorImpl
private class OutriggerServerImpl.IteratorImpl
Implementation of the remote iteration interface.
Field Summary | |
---|---|
(package private) boolean |
closed
true if closed, false otherwise |
private EntryRep[] |
lastBatch
Last batch of EntryRep objects sent to the
client. |
private Uuid |
lastId
Uuid of last entry in lastBatch . |
private RepEnum |
repEnum
RepEnum for all potential matches |
private EntryRep |
tmpl
The template the match |
Constructor Summary | |
---|---|
OutriggerServerImpl.IteratorImpl(EntryRep tmpl,
Txn txn)
Create a RemoteIterImpl object to return all
objects that match the given template. |
Method Summary | |
---|---|
private void |
assertOpen()
Throw IllegalStateException if operations happen on closed iterator. |
void |
close()
Close operations on this iterator. |
void |
delete(Uuid id)
Delete the entry of the given class and id. |
EntryRep[] |
nextReps(int max,
Uuid id)
|
private void |
rememberLast(EntryRep[] newLast)
Utility to set lastBatch and lastId . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final EntryRep tmpl
private RepEnum repEnum
boolean closed
true
if closed, false
otherwise
private EntryRep[] lastBatch
EntryRep
objects sent to the
client.
private Uuid lastId
Uuid
of last entry in lastBatch
.
Constructor Detail |
---|
OutriggerServerImpl.IteratorImpl(EntryRep tmpl, Txn txn)
RemoteIterImpl
object to return all
objects that match the given template.
Method Detail |
---|
private void rememberLast(EntryRep[] newLast)
lastBatch
and lastId
.
public EntryRep[] nextReps(int max, Uuid id)
public void delete(Uuid id)
EntryHolder
efficiently.
public void close()
private void assertOpen() throws IllegalStateException
IllegalStateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |