Package com.atlassian.bitbucket.server
Interface ApplicationStatusService
public interface ApplicationStatusService
Monitor for the state of the server. Used by conditions to determine when to display warning banners to the user.
-
Method Summary
Modifier and TypeMethodDescriptiongetState()
boolean
Retrieves a flag indicating whether a recent request has failed.boolean
Retrieves a flag indicating whether a recent request has been queued for longer than the timeout.
-
Method Details
-
getState
- Returns:
- the current state of the server
-
hasRecentlyRejectedRequests
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
-
isQueueingRequests
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
-