public final class Watermark extends Object implements Comparable<Watermark>
Modifier and Type | Field and Description |
---|---|
protected boolean |
completed |
static Watermark |
LOWEST |
protected short |
sequence |
protected long |
timestamp |
protected long |
value |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Watermark o) |
static Watermark |
completedOf(Watermark watermark) |
boolean |
equals(Object o) |
short |
getSequence() |
long |
getTimestamp() |
long |
getValue() |
int |
hashCode() |
boolean |
isCompleted() |
boolean |
isDone(long timestamp) |
static Watermark |
ofTimestamp(long timestamp) |
static Watermark |
ofTimestamp(long timestamp,
short sequence) |
static Watermark |
ofValue(long watermarkValue) |
String |
toString() |
protected final long timestamp
protected final short sequence
protected final boolean completed
protected final long value
public static Watermark ofTimestamp(long timestamp)
public static Watermark ofTimestamp(long timestamp, short sequence)
public static Watermark completedOf(Watermark watermark)
public long getValue()
public boolean isCompleted()
public short getSequence()
public long getTimestamp()
public boolean isDone(long timestamp)
public int compareTo(Watermark o)
compareTo
in interface Comparable<Watermark>
Copyright © 2018 Nuxeo. All rights reserved.