Interface InternalTimeServiceManager<K>

    • Method Detail

      • getInternalTimerService

        <N> InternalTimerService<N> getInternalTimerService​(String name,
                                                            org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
                                                            org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
                                                            Triggerable<K,​N> triggerable)
        Creates an InternalTimerService for handling a group of timers identified by the given name. The timers are scoped to a key and namespace.

        When a timer fires the given Triggerable will be invoked.

      • getAsyncInternalTimerService

        <N> InternalTimerService<N> getAsyncInternalTimerService​(String name,
                                                                 org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
                                                                 org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
                                                                 Triggerable<K,​N> triggerable,
                                                                 org.apache.flink.runtime.asyncprocessing.AsyncExecutionController<K> asyncExecutionController)
        Creates an InternalTimerServiceAsyncImpl for handling a group of timers identified by the given name. The timers are scoped to a key and namespace. Mainly used by async operators.

        Some essential order preservation will be added when the given Triggerable is invoked.

      • snapshotToRawKeyedState

        void snapshotToRawKeyedState​(org.apache.flink.runtime.state.KeyedStateCheckpointOutputStream stateCheckpointOutputStream,
                                     String operatorName)
                              throws Exception
        Snapshots the timers to raw keyed state.

        TODO: This can be removed once heap-based timers are integrated with RocksDB incremental snapshots.

        Throws:
        Exception