public class Lsn extends Object implements Comparable<Lsn>
LogSequenceNumber.| Modifier and Type | Field and Description |
|---|---|
static Lsn |
INVALID_LSN
Zero is used indicate an invalid pointer.
|
private long |
value |
| Modifier | Constructor and Description |
|---|---|
private |
Lsn(long value) |
| Modifier and Type | Method and Description |
|---|---|
org.postgresql.replication.LogSequenceNumber |
asLogSequenceNumber() |
long |
asLong() |
String |
asString() |
int |
compareTo(Lsn o) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isValid() |
String |
toString() |
static Lsn |
valueOf(org.postgresql.replication.LogSequenceNumber value) |
static Lsn |
valueOf(Long value) |
static Lsn |
valueOf(String strValue)
Create LSN instance by string represent LSN.
|
public static final Lsn INVALID_LSN
private final long value
public static Lsn valueOf(Long value)
value - numeric represent position in the write-ahead log streampublic static Lsn valueOf(org.postgresql.replication.LogSequenceNumber value)
value - PostgreSQL JDBC driver domain type representing position in the write-ahead log streampublic static Lsn valueOf(String strValue)
strValue - not null string as two hexadecimal numbers of up to 8 digits
each, separated by a slash. For example 16/3002D50,
0/15D68C50INVALID_LSNpublic long asLong()
public org.postgresql.replication.LogSequenceNumber asLogSequenceNumber()
public String asString()
16/3002D50, 0/15D68C50public boolean isValid()
public int compareTo(Lsn o)
compareTo in interface Comparable<Lsn>Copyright © 2021 JBoss by Red Hat. All rights reserved.