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.Exception
void shutdown() throws Exception
CheckpointIDCounter
service down and frees all created
resources.Exception
void suspend() throws Exception
If the implementation allows recovery, the counter state needs to be kept. Otherwise, this acts as shutdown.
Exception
long getAndIncrement() throws Exception
Exception
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.