public interface CheckpointIDCounter
| Modifier and Type | Method and Description |
|---|---|
long |
getAndIncrement()
Atomically increments the current checkpoint ID.
|
void |
setCount(long newId)
Sets the current checkpoint ID.
|
void |
shutdown()
Shuts the
CheckpointIDCounter service down and frees all created
resources. |
void |
start()
Starts the
CheckpointIDCounter service. |
void |
suspend()
Suspends the counter.
|
void start()
throws Exception
CheckpointIDCounter service.Exceptionvoid shutdown()
throws Exception
CheckpointIDCounter service down and frees all created
resources.Exceptionvoid suspend()
throws Exception
If the implementation allows recovery, the counter state needs to be kept. Otherwise, this acts as shutdown.
Exceptionlong getAndIncrement()
throws Exception
ExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.