Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public class ServiceBusyException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. ServiceBusyException

The server is doing as much of something expensive as it was told it may, and this request would have been one more: it is turned away at once, rather than queued behind work that is already late.

Thrown anywhere under a SecurityFilterChain it is answered 503 with Retry-After. It is deliberately not an AuthenticationException: the caller’s credentials were never looked at, and a client told they were wrong would stop trying the right ones.

Constructors

public ServiceBusyException(String message, int retryAfterSeconds)

Methods

public int getRetryAfterSeconds()What the answer’s Retry-After says.

Inherited methods

Constructor details

ServiceBusyException

public ServiceBusyException(String message, int retryAfterSeconds)

Method details

getRetryAfterSeconds

public int getRetryAfterSeconds()
What the answer’s Retry-After says.