public class LeaderKey extends Object
| Constructor and Description |
|---|
LeaderKey(com.google.protobuf.ByteString name,
com.google.protobuf.ByteString key,
long revision,
long lease) |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
getKey()
opaque key representing the ownership of the election.
|
long |
getLease()
lease ID of the election leader.
|
com.google.protobuf.ByteString |
getName()
election identifier that corresponds to the leadership key.
|
long |
getRevision()
creation revision of the key.
|
public LeaderKey(com.google.protobuf.ByteString name,
com.google.protobuf.ByteString key,
long revision,
long lease)
public com.google.protobuf.ByteString getName()
public com.google.protobuf.ByteString getKey()
public long getRevision()
public long getLease()
Copyright © 2020. All rights reserved.