com.liferay.portal.kernel.messaging
Class ParallelDestination

java.lang.Object
  extended by com.liferay.portal.kernel.messaging.BaseDestination
      extended by com.liferay.portal.kernel.messaging.ArrayDispatcherDestination
          extended by com.liferay.portal.kernel.messaging.ParallelDestination
All Implemented Interfaces:
Destination

public class ParallelDestination
extends ArrayDispatcherDestination

View Source

Destination that delivers a message to a list of message listeners in parallel.

Author:
Michael C. Han

Constructor Summary
ParallelDestination(java.lang.String name)
           
ParallelDestination(java.lang.String name, int workersCoreSize, int workersMaxSize)
           
 
Method Summary
protected  void dispatch(java.util.Set<MessageListener> listeners, Message message)
           
 
Methods inherited from class com.liferay.portal.kernel.messaging.ArrayDispatcherDestination
getListenerCount, register, send, unregister
 
Methods inherited from class com.liferay.portal.kernel.messaging.BaseDestination
close, close, doClose, doOpen, getName, getStatistics, getThreadPoolExecutor, getWorkersCoreSize, getWorkersMaxSize, isRegistered, open
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelDestination

public ParallelDestination(java.lang.String name)

ParallelDestination

public ParallelDestination(java.lang.String name,
                           int workersCoreSize,
                           int workersMaxSize)
Method Detail

dispatch

protected void dispatch(java.util.Set<MessageListener> listeners,
                        Message message)
Specified by:
dispatch in class ArrayDispatcherDestination