| Package | Description |
|---|---|
| com.twitter.distributedlog | |
| com.twitter.distributedlog.io | |
| com.twitter.distributedlog.util |
| Modifier and Type | Field and Description |
|---|---|
static DLSN |
DLSN.InitialDLSN |
static DLSN |
DLSN.InvalidDLSN |
static DLSN |
DLSN.NonInclusiveLowerBound |
| Modifier and Type | Method and Description |
|---|---|
static DLSN |
DLSN.deserialize(String dlsn)
Deserialize the DLSN from base64 encoded string
dlsn. |
static DLSN |
DLSN.deserializeBytes(byte[] data)
Deserialize the DLSN from bytes array.
|
DLSN |
RecordStream.getCurrentPosition()
Get postion of current record in the stream
|
DLSN |
LogRecordWithDLSN.getDlsn()
Get the DLSN of the record in the log.
|
DLSN |
DLSN.getNextDLSN()
Positions to a DLSN greater than the current value - this may not
correspond to an actual LogRecord, its just used by the positioning logic
to position the reader
|
DLSN |
DLSN.positionOnTheNextLedger()
Positions to a DLSN greater than the current value - this may not
correspond to an actual LogRecord, its just used by the positioning logic
to position the reader
|
| Modifier and Type | Method and Description |
|---|---|
int |
DLSN.compareTo(DLSN that) |
boolean |
LogRecord.Reader.skipTo(DLSN dlsn) |
| Modifier and Type | Method and Description |
|---|---|
void |
LogRecordSet.Writer.writeRecord(ByteBuffer record,
com.twitter.util.Promise<DLSN> transmitPromise)
Write a
LogRecord to this record set. |
| Constructor and Description |
|---|
LogRecordWithDLSN(DLSN dlsn,
long txid,
byte[] data,
long startSequenceIdOfCurrentSegment) |
| Modifier and Type | Method and Description |
|---|---|
DLSN |
TransmitListener.finalizeTransmit(long lssn,
long entryId)
Finalize the transmit result and result the last
DLSN in this transmit. |
| Modifier and Type | Method and Description |
|---|---|
static Long |
ProtocolUtils.truncateOpCRC32(String stream,
DLSN dlsn)
Generate crc32 for TruncateOp.
|
Copyright © 2016. All Rights Reserved.