Interface StateTypeStrategy

  • All Superinterfaces:
    TypeStrategy

    @PublicEvolving
    public interface StateTypeStrategy
    extends TypeStrategy
    Strategy for inferring a function call's intermediate result data type (i.e. state entry).
    • Method Detail

      • getTimeToLive

        Optional<Duration> getTimeToLive​(CallContext callContext)
        The time-to-live (TTL) duration that automatically cleans up the state entry.

        Returning Optional.empty() will fall back to default behavior. Returning a value equal or greater than 0 means setting a custom TTL for this state entry and ignoring the global defaults.