Package org.elasticsearch.index.shard
Class GlobalCheckpointListeners
java.lang.Object
org.elasticsearch.index.shard.GlobalCheckpointListeners
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class GlobalCheckpointListeners
extends java.lang.Object
implements java.io.Closeable
Represents a collection of global checkpoint listeners. This collection can be added to, and all listeners present at the time of an
update will be notified together. All listeners will be notified when the shard is closed.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GlobalCheckpointListeners.GlobalCheckpointListener
A global checkpoint listener consisting of a callback that is notified when the global checkpoint is updated or the shard is closed. -
Method Summary
Modifier and Type Method Description void
close()
-
Method Details
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-