Module org.elasticsearch.server
Package org.elasticsearch.cluster
Interface ProjectStateObserver.Listener
- Enclosing class:
ProjectStateObserver
public static interface ProjectStateObserver.Listener
-
Method Summary
Modifier and TypeMethodDescriptionvoidcalled when the cluster service is closedvoidonProjectMissing(ProjectId projectId, ClusterState clusterState) called when the cluster metadata does not contain the projectvoidonProjectStateChange(ProjectState projectState) called when the project state has (or might have) changed.voidCalled when theClusterStateObservertimes out while waiting for a new matching cluster state if a timeout is used when creating the observer.
-
Method Details
-
onProjectStateChange
called when the project state has (or might have) changed. -
onProjectMissing
called when the cluster metadata does not contain the project -
onClusterServiceClose
void onClusterServiceClose()called when the cluster service is closed -
onTimeout
Called when theClusterStateObservertimes out while waiting for a new matching cluster state if a timeout is used when creating the observer. Upon timeout,onTimeoutis called on the GENERIC threadpool.
-