public class ReplicaInfo
extends java.lang.Object
Constructor and Description |
---|
ReplicaInfo(long size,
long offsetLag,
boolean isFuture) |
Modifier and Type | Method and Description |
---|---|
boolean |
isFuture()
Whether this replica has been created by a AlterReplicaLogDirsRequest
but not yet replaced the current replica on the broker.
|
long |
offsetLag()
The lag of the log's LEO with respect to the partition's
high watermark (if it is the current log for the partition)
or the current replica's LEO (if it is the future log
for the partition).
|
long |
size()
The total size of the log segments in this replica in bytes.
|
java.lang.String |
toString() |
public long size()
public long offsetLag()
public boolean isFuture()
public java.lang.String toString()
toString
in class java.lang.Object