|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.arjuna.ats.arjuna.coordinator.RecordList
public class RecordList
This class manages instances of the classes derived from AbstractRecord in the form of an ordered doubly-linked list. The ordering and insertion criteria are not particularly standard - see the comment on 'insert' for the actual algorithm used in insertion. The algorithm assumes that one or more different record type instances (LockRecords, RecoveryRecords, etc.) will be inserted into the list at different times. Each such record contains specific information managing certain properties of any particular object. As execution progresses newly created records may need to be merged with, replace entirely, or be added to existing records that relate to an object. Note, the methods of this class do not need to be synchronized because instances of this class are only used from within synchronized classes. Applications should not use this class.
Field Summary | |
---|---|
protected AbstractRecord |
listHead
|
Constructor Summary | |
---|---|
RecordList()
|
|
RecordList(RecordList copy)
|
Method Summary | |
---|---|
AbstractRecord |
getFront()
Remove and return the element at the front of the list. |
AbstractRecord |
getNext(AbstractRecord current)
|
AbstractRecord |
getRear()
Remove and return the element at the tail of the list. |
boolean |
insert(AbstractRecord newRecord)
Insert the entry at the head of the list. |
AbstractRecord |
peekFront()
|
AbstractRecord |
peekNext(AbstractRecord curr)
|
AbstractRecord |
peekRear()
|
void |
print(PrintWriter strm)
|
void |
putFront(AbstractRecord newRecord)
Explicit push onto front of list. |
void |
putRear(AbstractRecord newRecord)
Explicit push onto rear of list. |
boolean |
remove(AbstractRecord oldRecord)
|
int |
size()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AbstractRecord listHead
Constructor Detail |
---|
public RecordList()
public RecordList(RecordList copy)
Method Detail |
---|
public final AbstractRecord getFront()
public final AbstractRecord getRear()
public AbstractRecord getNext(AbstractRecord current)
public final boolean insert(AbstractRecord newRecord)
public final void print(PrintWriter strm)
public final void putFront(AbstractRecord newRecord)
public final void putRear(AbstractRecord newRecord)
public final AbstractRecord peekFront()
public final AbstractRecord peekRear()
public final AbstractRecord peekNext(AbstractRecord curr)
public final boolean remove(AbstractRecord oldRecord)
public final int size()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |