com.sun.jini.outrigger
Class OperationJournal.JournalNode

java.lang.Object
  extended by com.sun.jini.outrigger.OperationJournal.JournalNode
Enclosing class:
OperationJournal

private class OperationJournal.JournalNode
extends Object

The nodes of our Journal


Field Summary
private  OperationJournal.JournalNode next
          The next node in the journal
private  long ordinal
          The sequence number of this journal entry
private  Object payload
          The contents of this journal entry
 
Constructor Summary
private OperationJournal.JournalNode(Object payload)
          Create a new JournalNode with the specified value for the payload, null for next, and the appropriate value for ordinal.
 
Method Summary
private  OperationJournal.JournalNode getNext()
          Get the next element in the journal.
private  void setNext(OperationJournal.JournalNode n)
          Set the next element in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

private OperationJournal.JournalNode next
The next node in the journal


ordinal

private final long ordinal
The sequence number of this journal entry


payload

private final Object payload
The contents of this journal entry

Constructor Detail

OperationJournal.JournalNode

private OperationJournal.JournalNode(Object payload)
Create a new JournalNode with the specified value for the payload, null for next, and the appropriate value for ordinal.

Assumes the lock on the OperationJournal is held,

Parameters:
payload - The value for the payload field.
Method Detail

setNext

private void setNext(OperationJournal.JournalNode n)
Set the next element in the list.

Parameters:
n - the new value for the next field.
Throws:
IllegalStateException - if the next field has already been set.
NullPointerException - if n is null.

getNext

private OperationJournal.JournalNode getNext()
Get the next element in the journal.

Returns:
the next element in the list, or null if there is currently no next element.


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.