public interface Writer
Modifier and Type | Method and Description |
---|---|
boolean |
ready()
Returns true if this is the master writer and is ready to process requests
|
void |
startWriter(int generationId)
Starts master writer with the specified generation id.
|
void |
stopWriter(Integer generationId)
Stops this writer because a new master writer was elected.
|
void startWriter(int generationId)
MetadataServiceCoordinator
during writer election.generationId
- Generation id of writervoid stopWriter(Integer generationId)
generationId
- Generation id of writer being stopped or null to stop regardless of
current writer generationboolean ready()