public class DefaultRecordProducer extends Object implements RecordProducer
Constructor and Description |
---|
DefaultRecordProducer(AbstractJournal journal,
String id)
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
Record |
append()
Append a record.
|
protected AppendRecord |
createRecord()
Create a new record.
|
public DefaultRecordProducer(AbstractJournal journal, String id)
journal
- journalid
- producer idpublic Record append() throws JournalException
Record.update()
or Record.cancelUpdate()
.
on the record returned.append
in interface RecordProducer
JournalException
- if an error occursprotected AppendRecord createRecord() throws JournalException
JournalException
- if an error occursCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.