public interface LeaderKeyOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
getKey()
key is an opaque key representing the ownership of the election.
|
long |
getLease()
lease is the lease ID of the election leader.
|
com.google.protobuf.ByteString |
getName()
name is the election identifier that correponds to the leadership key.
|
long |
getRev()
rev is the creation revision of the key.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofcom.google.protobuf.ByteString getName()
name is the election identifier that correponds to the leadership key.
bytes name = 1;com.google.protobuf.ByteString getKey()
key is an opaque key representing the ownership of the election. If the key is deleted, then leadership is lost.
bytes key = 2;long getRev()
rev is the creation revision of the key. It can be used to test for ownership of an election during transactions by testing the key's creation revision matches rev.
int64 rev = 3;long getLease()
lease is the lease ID of the election leader.
int64 lease = 4;Copyright © 2020. All rights reserved.