public class ContextStateFutureImpl<T>
extends org.apache.flink.core.state.StateFutureImpl<T>
RecordContext and maintains the reference count of it. The
reason why we maintain the reference here is that the ContextStateFutureImpl can be created
multiple times since user may chain their code wildly, some of which are only for internal usage
(See StateFutureImpl). So maintaining reference counting by the lifecycle of state future
is relatively simple and less error-prone.
Reference counting added on RecordContext follows:
ContextStateFutureImplTest where the reference counting is carefully
tested.| Modifier and Type | Method and Description |
|---|---|
void |
callbackFinished() |
void |
callbackRegistered() |
<A> org.apache.flink.core.state.StateFutureImpl<A> |
makeNewStateFuture() |
void |
postComplete(boolean inCallbackRunner) |
public <A> org.apache.flink.core.state.StateFutureImpl<A> makeNewStateFuture()
makeNewStateFuture in class org.apache.flink.core.state.StateFutureImpl<T>public void callbackRegistered()
callbackRegistered in class org.apache.flink.core.state.StateFutureImpl<T>public void postComplete(boolean inCallbackRunner)
postComplete in class org.apache.flink.core.state.StateFutureImpl<T>public void callbackFinished()
callbackFinished in class org.apache.flink.core.state.StateFutureImpl<T>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.