org.springframework.amqp.rabbit.listener
Class ActiveObjectCounter<T>
java.lang.Object
org.springframework.amqp.rabbit.listener.ActiveObjectCounter<T>
public class ActiveObjectCounter<T>
- extends Object
- Author:
- Dave Syer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActiveObjectCounter
public ActiveObjectCounter()
add
public void add(T object)
release
public void release(T object)
await
public boolean await(Long timeout,
TimeUnit timeUnit)
throws InterruptedException
- Throws:
InterruptedException
getCount
public int getCount()
reset
public void reset()
Copyright © 2011. All Rights Reserved.