public class PersistentLeaseKey extends com.google.common.util.concurrent.AbstractFuture<com.google.protobuf.ByteString> implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.util.concurrent.SettableFuture<Object> |
closeFuture |
protected com.google.protobuf.ByteString |
key |
protected boolean |
leaseActive |
protected ListenerObserver<PersistentLease.LeaseState> |
stateObserver |
protected com.google.common.util.concurrent.ListenableFuture<?> |
updateFuture |
| Constructor and Description |
|---|
PersistentLeaseKey(EtcdClient client,
com.google.protobuf.ByteString key,
com.google.protobuf.ByteString defaultValue,
RangeCache rangeCache) |
PersistentLeaseKey(EtcdClient client,
PersistentLease lease,
com.google.protobuf.ByteString key,
com.google.protobuf.ByteString defaultValue,
RangeCache rangeCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<?> |
closeWithFuture() |
protected void |
interruptTask() |
protected boolean |
isActive()
Deprecated.
|
protected void |
leaseStateChanged(boolean c,
PersistentLease.LeaseState newState,
Throwable t) |
protected void |
putKey(long leaseId) |
void |
setDefaultValue(com.google.protobuf.ByteString value) |
void |
start() |
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.ByteString> |
startWithFuture() |
protected final com.google.protobuf.ByteString key
protected final ListenerObserver<PersistentLease.LeaseState> stateObserver
protected boolean leaseActive
protected com.google.common.util.concurrent.ListenableFuture<?> updateFuture
protected com.google.common.util.concurrent.SettableFuture<Object> closeFuture
public PersistentLeaseKey(EtcdClient client, PersistentLease lease, com.google.protobuf.ByteString key, com.google.protobuf.ByteString defaultValue, RangeCache rangeCache)
public PersistentLeaseKey(EtcdClient client, com.google.protobuf.ByteString key, com.google.protobuf.ByteString defaultValue, RangeCache rangeCache)
protected void leaseStateChanged(boolean c,
PersistentLease.LeaseState newState,
Throwable t)
@Deprecated protected boolean isActive()
public void start()
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.ByteString> startWithFuture()
public void setDefaultValue(com.google.protobuf.ByteString value)
protected void putKey(long leaseId)
protected void interruptTask()
public void close()
public com.google.common.util.concurrent.ListenableFuture<?> closeWithFuture()
Copyright © 2020. All rights reserved.