Package org.apache.flink.runtime.query
Interface KvStateRegistryListener
- All Known Implementing Classes:
RpcKvStateRegistryListener
public interface KvStateRegistryListener
A listener for a
KvStateRegistry.
The registry calls these methods when KvState instances are registered and unregistered.
-
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyKvStateRegistered(org.apache.flink.api.common.JobID jobId, JobVertexID jobVertexId, KeyGroupRange keyGroupRange, String registrationName, org.apache.flink.queryablestate.KvStateID kvStateId) Notifies the listener about a registered KvState instance.voidnotifyKvStateUnregistered(org.apache.flink.api.common.JobID jobId, JobVertexID jobVertexId, KeyGroupRange keyGroupRange, String registrationName) Notifies the listener about an unregistered KvState instance.
-
Method Details
-
notifyKvStateRegistered
void notifyKvStateRegistered(org.apache.flink.api.common.JobID jobId, JobVertexID jobVertexId, KeyGroupRange keyGroupRange, String registrationName, org.apache.flink.queryablestate.KvStateID kvStateId) Notifies the listener about a registered KvState instance.- Parameters:
jobId- Job ID the KvState instance belongs tojobVertexId- JobVertexID the KvState instance belongs tokeyGroupRange- Key group range the KvState instance belongs toregistrationName- Name under which the KvState is registeredkvStateId- ID of the KvState instance
-
notifyKvStateUnregistered
void notifyKvStateUnregistered(org.apache.flink.api.common.JobID jobId, JobVertexID jobVertexId, KeyGroupRange keyGroupRange, String registrationName) Notifies the listener about an unregistered KvState instance.- Parameters:
jobId- Job ID the KvState instance belongs tojobVertexId- JobVertexID the KvState instance belongs tokeyGroupRange- Key group range the KvState instance belongs toregistrationName- Name under which the KvState is registered
-