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.| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 org.apache.flink.core.state.StateFutureImpl<T>public void callbackRegistered()
callbackRegistered 在类中 org.apache.flink.core.state.StateFutureImpl<T>public void postComplete(boolean inCallbackRunner)
postComplete 在类中 org.apache.flink.core.state.StateFutureImpl<T>public void callbackFinished()
callbackFinished 在类中 org.apache.flink.core.state.StateFutureImpl<T>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.