public class KinesisClientLease extends Lease
| Constructor and Description |
|---|
KinesisClientLease() |
KinesisClientLease(KinesisClientLease other) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Lease> |
copy()
Returns a deep copy of this object.
|
boolean |
equals(Object obj) |
ExtendedSequenceNumber |
getCheckpoint() |
Long |
getOwnerSwitchesSinceCheckpoint() |
Set<String> |
getParentShardIds() |
ExtendedSequenceNumber |
getPendingCheckpoint() |
int |
hashCode() |
void |
setCheckpoint(ExtendedSequenceNumber checkpoint)
Sets checkpoint.
|
void |
setOwnerSwitchesSinceCheckpoint(Long ownerSwitchesSinceCheckpoint)
Sets ownerSwitchesSinceCheckpoint.
|
void |
setParentShardIds(Collection<String> parentShardIds)
Sets parentShardIds.
|
void |
setPendingCheckpoint(ExtendedSequenceNumber pendingCheckpoint)
Sets pending checkpoint.
|
<T extends Lease> |
update(T other)
Updates this Lease's mutable, application-specific fields based on the passed-in lease object.
|
getConcurrencyToken, getLastCounterIncrementNanos, getLeaseCounter, getLeaseKey, getLeaseOwner, isExpired, setConcurrencyToken, setLastCounterIncrementNanos, setLeaseCounter, setLeaseKey, setLeaseOwner, toStringpublic KinesisClientLease()
public KinesisClientLease(KinesisClientLease other)
public <T extends Lease> void update(T other)
public ExtendedSequenceNumber getCheckpoint()
public ExtendedSequenceNumber getPendingCheckpoint()
public Long getOwnerSwitchesSinceCheckpoint()
public Set<String> getParentShardIds()
public void setCheckpoint(ExtendedSequenceNumber checkpoint)
checkpoint - may not be nullpublic void setPendingCheckpoint(ExtendedSequenceNumber pendingCheckpoint)
pendingCheckpoint - can be nullpublic void setOwnerSwitchesSinceCheckpoint(Long ownerSwitchesSinceCheckpoint)
ownerSwitchesSinceCheckpoint - may not be nullpublic void setParentShardIds(Collection<String> parentShardIds)
parentShardIds - may not be nullCopyright © 2018. All rights reserved.