com.atlassian.cache.impl
Class OneShotLatch
java.lang.Object
com.atlassian.cache.impl.OneShotLatch
public class OneShotLatch
- extends Object
A useful synchronization construct for ensuring the correct behaviour of cache implementations.
The one-shot latch is initially held by the thread that creates it and must be explicitly
released by it.
- Since:
- v2.4.5
OneShotLatch
public OneShotLatch()
isHeldByCurrentThread
public boolean isHeldByCurrentThread()
release
public void release()
await
public void await()
await
public boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2015 Atlassian. All rights reserved.