org.apache.flume.channel.recoverable.memory.wal
Class WALEntry<T extends Writable>
java.lang.Object
org.apache.flume.channel.recoverable.memory.wal.WALEntry<T>
public class WALEntry<T extends Writable>
- extends Object
Wraps a Writable
with a sequence id so that both can
be written together to a file.
Constructor Summary |
WALEntry(T data,
long sequenceID)
Creates a WALEntry with specified payload and sequence id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WALEntry
public WALEntry(T data,
long sequenceID)
- Creates a WALEntry with specified payload and sequence id
- Parameters:
data
- sequenceID
-
readFields
public void readFields(DataInput in)
throws IOException
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Throws:
IOException
getData
public T getData()
getSequenceID
public long getSequenceID()
Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.