public interface

ApplicationStatusService

com.atlassian.bitbucket.server.ApplicationStatusService

Class Overview

Monitor for the state of the server. Used by conditions to determine when to display warning banners to the user.

Summary

Public Methods
@Nonnull ApplicationState getState()
boolean hasRecentlyRejectedRequests()
Retrieves a flag indicating whether a recent request has failed.
boolean isQueueingRequests()
Retrieves a flag indicating whether a recent request has been queued for longer than the timeout.

Public Methods

@Nonnull public ApplicationState getState ()

Returns
  • the current state of the server

public boolean hasRecentlyRejectedRequests ()

Retrieves a flag indicating whether a recent request has failed. The definition of "recent" is left to the implementation, but should be within the last few minutes.

Returns
  • true if acquiring a ticket has been rejected; otherwise, false

public boolean isQueueingRequests ()

Retrieves a flag indicating whether a recent request has been queued for longer than the timeout.

Returns
  • true if acquiring a ticket has been queued for more than the timeout otherwise, false