Interface ContinuationEventStream.HopOpener

Enclosing class:
ContinuationEventStream
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ContinuationEventStream.HopOpener
Opens the stream of a continuation hop.
  • Method Details

    • open

      @Nullable EventStream<InteractionSSEStreamEvent> open(String token, @Nullable String tokenOwnerId) throws Exception
      Sends a continuation request resuming from token.
      Parameters:
      token - the continuation_token to resume from
      tokenOwnerId - the id of the interaction that issued token, or null for the caller's own token
      Returns:
      the hop's event stream, or null if the response was not a stream (ends the stream)
      Throws:
      Exception