| java.lang.Object | |
| ↳ | com.atlassian.confluence.search.contentnames.SemaphoreHolder |
Holds the semaphore used to enforce a limit on the number of simultaneous quick nav searches. The purpose of this holder is to front the actual semaphore that does all the work. We need a front so as to have the ability to swap in another semaphore when the user decides to change the default limit. This is because we cannot increase the number of permits on the JDK java.util.concurrent.Semaphore class.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the semaphore held.
| |||||||||||
Update the underlying semaphore to the size of com.atlassian.confluence.setup.settings.Settings#maxSimultaneousQuickNavRequests.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Returns the semaphore held. Clients should call this for each attempt at acquiring a permit (so as to get the latest one configured for this instance of Confluence).
Update the underlying semaphore to the size of com.atlassian.confluence.setup.settings.Settings#maxSimultaneousQuickNavRequests.

