- leave
Leaves this monitor. May be called only by a thread currently occupying this
monitor.
- enter
Enters this monitor. Blocks at most the given time.
- enterWhenUninterruptibly
Enters this monitor when the guard is satisfied. Blocks at most the given time,
including both the t
- enterIf
Enters this monitor if the guard is satisfied. Blocks at most the given time
acquiring the lock, but
- isOccupiedByCurrentThread
Returns whether the current thread is occupying this monitor (has entered more
times than it has lef
- getWaitQueueLength
Returns an estimate of the number of threads waiting for the given guard to
become satisfied. Note t
- beginWaitingFor
Records that the current thread is about to wait on the specified guard.
- endWaitingFor
Records that the current thread is no longer waiting on the specified guard.
- signalAllWaiters
Signals all threads waiting on guards.
- signalNextWaiter
Signals some other thread waiting on a satisfied guard, if one exists.We manage
calls to this method
- waitForUninterruptibly
Waits for the guard to be satisfied. Waits at most the given time. May be called
only by a thread cu
- await