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

构造方法摘要
SemaphoreReleaseOnlyOnce(Semaphore semaphore)
           
 
方法摘要
 Semaphore getSemaphore()
           
 void release()
           
 
从类 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.