Interface CompositeStateHandle

    • Method Detail

      • registerSharedStates

        void registerSharedStates​(SharedStateRegistry stateRegistry,
                                  long checkpointID)
        Register both newly created and already referenced shared states in the given SharedStateRegistry. This method is called when the checkpoint successfully completes or is recovered from failures.

        After this is completed, newly created shared state is considered as published is no longer owned by this handle. This means that it should no longer be deleted as part of calls to StateObject.discardState(). Instead, StateObject.discardState() will trigger an unregistration from the registry.

        Parameters:
        stateRegistry - The registry where shared states are registered.
      • getCheckpointedSize

        long getCheckpointedSize()
        Returns the persisted data size during checkpoint execution in bytes. If incremental checkpoint is enabled, this value represents the incremental persisted data size, and usually smaller than StateObject.getStateSize(). If the size is unknown, this method would return same result as StateObject.getStateSize().
        Returns:
        The persisted data size during checkpoint execution in bytes.