java.lang.Object | |
↳ | com.atlassian.jira.util.concurrent.BlockingCounter |
A simple counter that can will cause threads calling the await()
method to block while its value
is > 0. The counter may only be incremented and decremented and must have a value >= 0.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Block while counter is > 0, throwing InterruptedException if interrupted.
| |||||||||||
Block while counter is > 0, ignoring interrupts.
| |||||||||||
Returns true if calling
await() at the same very moment would block. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Block while counter is > 0, throwing InterruptedException if interrupted.
Note the behaviour has changed since v6.1 - before that InterruptedException was never thrown due to a bug.
InterruptedException |
---|
Block while counter is > 0, ignoring interrupts.