|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.outrigger.WrittenEntry
class WrittenEntry
This class is used to create a singly-linked list of written nodes
for notification and searches. When an entry is written, it is
added to this list. As each thread interested in recently-written
entries works, it has a reference to the WrittenEntry
object that mark the last entry the thread examined. When it is
done with that entry, it proceeds to the next. As each of these
references progresses, the WrittenEntry
nodes in the
list get left behind to be collected as garbage.
The list initially starts with the return value of startNode
,
and nodes are added using add
. The constructor is private to
enforce this usage.
OutriggerServerImpl.write(com.sun.jini.outrigger.EntryRep, net.jini.core.transaction.Transaction, long)
,
Notifier
Field Summary | |
---|---|
private WrittenEntry |
next
The next node in the list. |
private EntryRep |
rep
The EntryRep this node refers to. |
private long |
timestamp
The time at which this entry was written. |
Constructor Summary | |
---|---|
private |
WrittenEntry(EntryRep rep)
Create a new time-stamped entry for the given EntryRep. |
Method Summary | |
---|---|
(package private) WrittenEntry |
add(EntryRep rep)
Add a new entry after this one. |
(package private) WrittenEntry |
next()
Return the next object in the list. |
(package private) EntryRep |
rep()
Return the EntryRep of this entry. |
(package private) static WrittenEntry |
startNode()
Return the node which is the head of the list. |
(package private) long |
timestamp()
Return the time stamp when this entry was written. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long timestamp
private WrittenEntry next
private EntryRep rep
Constructor Detail |
---|
private WrittenEntry(EntryRep rep)
Method Detail |
---|
static WrittenEntry startNode()
EntryRep
of null
.
WrittenEntry add(EntryRep rep)
add
will skip ahead to
the end of the list.
long timestamp()
EntryRep rep()
startNode
), the EntryRep is null
.
startNode()
WrittenEntry next()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |