Class PullRegistrationError

All Implemented Interfaces:
Serializable

public final class PullRegistrationError extends IllegalStateException
Identifies a permanent pull rejection leaving a queue without a registered stream.

Thrown by Worker.waitPullRegistered(java.time.Duration) before initial readiness, or by Worker.start() when stopping on permanent rejection is enabled. Permanent codes are InvalidArgument, ResourceExhausted, Unimplemented, PermissionDenied, and Unauthenticated. The cause is the original transport error. See the wait method for a startup example.

See Also:
  • Constructor Details

    • PullRegistrationError

      public PullRegistrationError(String queue, Throwable cause)
      Creates a rejection retaining its original transport cause.
      Parameters:
      queue - the rejected Flow type or app Worker ID queue
      cause - the original permanent transport error
  • Method Details

    • getQueue

      public String getQueue()
      Returns the rejected queue name.
      Returns:
      the Flow type or app Worker ID queue