jp.terasoluna.fw.collector.concurrent
インタフェース NotificationBlockingQueue<E>

すべてのスーパーインタフェース:
BlockingQueue<E>, Collection<E>, Iterable<E>, Queue<E>
既知の実装クラスの一覧:
ArrayBlockingQueueEx

public interface NotificationBlockingQueue<E>
extends BlockingQueue<E>

キューイングの終了を通知するBlockingQueueインタフェース


メソッドの概要
 void finishQueueing()
          キューイングの終了を通知する。
 
インタフェース java.util.concurrent.BlockingQueue から継承されたメソッド
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take
 
インタフェース java.util.Queue から継承されたメソッド
element, peek, poll, remove
 
インタフェース java.util.Collection から継承されたメソッド
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray
 

メソッドの詳細

finishQueueing

void finishQueueing()
キューイングの終了を通知する。

キューに要素が入るのを待っているスレッドがいる場合、そのブロックを解除する。 キューに要素を詰めるスレッドは、キューイングが完了したあとで、必ずこのメソッドを実行すること。



Copyright © 2012. All Rights Reserved.