Class FleetStreamRestartedException

All Implemented Interfaces:
Serializable

public class FleetStreamRestartedException extends FleetModelException
A streamed fleet model call whose server died mid-stream, under the fail restart policy. The partial text is what the caller already received; the caller can retry, or keep it.
See Also:
  • Constructor Details

    • FleetStreamRestartedException

      public FleetStreamRestartedException(String requestId, int fromAttempt, int toAttempt, String partialText)
      Creates the exception.
      Parameters:
      requestId - the request
      fromAttempt - the attempt that died
      toAttempt - the attempt that took over
      partialText - the text emitted before the restart
  • Method Details

    • partialText

      public String partialText()
      The text emitted before the restart.
    • fromAttempt

      public int fromAttempt()
      The attempt that died.
    • toAttempt

      public int toAttempt()
      The attempt that took over.