public class RandomAccessLoggableImpl extends java.lang.Object implements RandomAccessLoggable
NO_STRUCTURE_ID, NULL_ADDRESS| Constructor and Description |
|---|
RandomAccessLoggableImpl(long address,
byte type,
@NotNull ByteIterableWithAddress data,
int dataLength,
int structureId) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAddress()
Address of the loggable in log.
|
@NotNull ByteIterableWithAddress |
getData()
Loggable data.
|
int |
getDataLength()
Length of the loggable data.
|
int |
getStructureId()
Returns unique id of structure that the loggable belongs to.
|
byte |
getType()
Type of loggable.
|
int |
length()
Length of the loggable with header and data.
|
public RandomAccessLoggableImpl(long address,
byte type,
@NotNull
@NotNull ByteIterableWithAddress data,
int dataLength,
int structureId)
public long getAddress()
LoggablegetAddress in interface Loggablepublic byte getType()
Loggablepublic int length()
Loggable@NotNull public @NotNull ByteIterableWithAddress getData()
LoggablegetData in interface LoggablegetData in interface RandomAccessLoggablepublic int getDataLength()
LoggablegetDataLength in interface Loggablepublic int getStructureId()
LoggablegetStructureId in interface Loggable