com.alibaba.rocketmq.remoting.common
类 SemaphoreReleaseOnlyOnce
java.lang.Object
com.alibaba.rocketmq.remoting.common.SemaphoreReleaseOnlyOnce
public class SemaphoreReleaseOnlyOnce
- extends Object
使用布尔原子变量,信号量保证只释放一次
- 从以下版本开始:
- 2013-7-13
- 作者:
- shijia.wxr
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SemaphoreReleaseOnlyOnce
public SemaphoreReleaseOnlyOnce(Semaphore semaphore)
release
public void release()
getSemaphore
public Semaphore getSemaphore()
Copyright © 2012-2015. All Rights Reserved.