public class Change extends Object implements Comparable<Change>
| Modifier and Type | Class and Description |
|---|---|
static interface |
Change.Batch
A batch of changes.
|
class |
Change.DelayedChange |
static interface |
Change.Source<B extends Change.Batch>
Detects changes.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
NO_REVISION
Change that is not associated with specific revision.
|
| Constructor and Description |
|---|
Change(String entityId,
long revision,
Instant timestamp,
long offset) |
Change(String entityId,
long revision,
Instant timestamp,
long offset,
String chronologyId) |
| Modifier and Type | Method and Description |
|---|---|
String |
chronologyId()
The entity that changed.
|
int |
compareTo(Change o) |
void |
delay(Queue<Change.DelayedChange> queue,
long timeout) |
String |
entityId()
The entity that changed.
|
Collection<String> |
getRefCleanupList()
Return reference cleanup list.
|
Collection<org.openrdf.model.Statement> |
getStatements()
Set statements collection.
|
Collection<String> |
getValueCleanupList()
Return value cleanup list.
|
long |
offset()
The offset of the change in the external stream.
|
long |
revision()
The revision of the change.
|
void |
setRefCleanupList(Collection<String> cleanupList)
Set reference cleanup list.
|
void |
setStatements(Collection<org.openrdf.model.Statement> statements)
Return statements collection.
|
void |
setValueCleanupList(Collection<String> cleanupList)
Set value cleanup list.
|
Instant |
timestamp()
The timestamp of the change.
|
String |
toString() |
public static final long NO_REVISION
public String entityId()
public long revision()
public long offset()
public Instant timestamp()
public String chronologyId()
public int compareTo(Change o)
compareTo in interface Comparable<Change>public Collection<org.openrdf.model.Statement> getStatements()
public void setStatements(Collection<org.openrdf.model.Statement> statements)
public Collection<String> getValueCleanupList()
public Collection<String> getRefCleanupList()
public void setRefCleanupList(Collection<String> cleanupList)
public void setValueCleanupList(Collection<String> cleanupList)
public void delay(Queue<Change.DelayedChange> queue, long timeout)
Copyright © 2019. All rights reserved.