private class OperationJournal.JournalNode extends Object
Modifier and Type | Field and Description |
---|---|
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
|
Modifier | Constructor and Description |
---|---|
private |
JournalNode(Object payload)
Create a new
JournalNode with the specified
value for the payload , null for
next , and the appropriate value for
ordinal . |
Modifier and Type | Method and Description |
---|---|
private OperationJournal.JournalNode |
getNext()
Get the next element in the journal.
|
private void |
setNext(OperationJournal.JournalNode n)
Set the next element in the list.
|
private OperationJournal.JournalNode next
private final long ordinal
private final Object payload
private JournalNode(Object payload)
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,
payload
- The value for the payload field.private void setNext(OperationJournal.JournalNode n)
n
- the new value for the next field.IllegalStateException
- if the next field has
already been set.NullPointerException
- if n
is
null
.private OperationJournal.JournalNode getNext()
null
if there is currently no next element.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.