com.aspire.nm.component.cmppserver.runTime.moProcess.queue
类 MOQueue<T>

java.lang.Object
  继承者 com.aspire.nm.component.cmppserver.runTime.moProcess.queue.MOQueue<T>
所有已实现的接口:
org.springframework.beans.factory.InitializingBean

@Scope(value="prototype")
@Component
public class MOQueue<T>
extends Object
implements org.springframework.beans.factory.InitializingBean


构造方法摘要
MOQueue()
           
 
方法摘要
 void afterPropertiesSet()
           
 void clear()
          清空队列
 boolean offer(T e)
           
 void put(T e)
          加入对象
 boolean putBack(T e)
          将之前去除的元素退回
 int queueSize()
           
 int remainingCapacity()
          取得可用空间
 int size()
          取得队列中存在对象数量
 T take()
          取出对象
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MOQueue

public MOQueue()
方法详细信息

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
指定者:
接口 org.springframework.beans.factory.InitializingBean 中的 afterPropertiesSet
抛出:
Exception

put

public void put(T e)
         throws InterruptedException
加入对象

参数:
o -
抛出:
InterruptedException

offer

public boolean offer(T e)

take

public T take()
       throws InterruptedException
取出对象

返回:
抛出:
InterruptedException

size

public int size()
取得队列中存在对象数量

返回:
队列中对象数量

queueSize

public int queueSize()

remainingCapacity

public int remainingCapacity()
取得可用空间

返回:
可用空间

clear

public void clear()
清空队列


putBack

public boolean putBack(T e)
将之前去除的元素退回

参数:
e -


Copyright © 2016. All rights reserved.