public class MetaFile extends Object
long value. The file is updated atomically
and durably (i.e fsynced).| Modifier and Type | Method and Description |
|---|---|
long |
getTerm() |
String |
getVotedFor() |
void |
set(long newTerm,
String newVotedFor) |
public long getTerm()
throws IOException
IOExceptionpublic String getVotedFor() throws IOException
IOExceptionpublic void set(long newTerm,
String newVotedFor)
throws IOException
IOExceptionCopyright © 2017–2020 The Apache Software Foundation. All rights reserved.