com.liferay.portal.kernel.messaging
Class ArrayDispatcherDestination
java.lang.Object
com.liferay.portal.kernel.messaging.BaseDestination
com.liferay.portal.kernel.messaging.ArrayDispatcherDestination
- All Implemented Interfaces:
- Destination
- Direct Known Subclasses:
- ParallelDestination
public abstract class ArrayDispatcherDestination
- extends BaseDestination
View Source
- Author:
- Michael C. Han, Brian Wing Shun Chan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayDispatcherDestination
public ArrayDispatcherDestination(java.lang.String name)
ArrayDispatcherDestination
public ArrayDispatcherDestination(java.lang.String name,
int workersCoreSize,
int workersMaxSize)
register
public void register(MessageListener listener)
send
public void send(java.lang.Object message)
send
public void send(java.lang.String message)
unregister
public boolean unregister(MessageListener listener)
dispatch
protected abstract void dispatch(MessageListener[] listeners,
java.lang.Object message)
dispatch
protected abstract void dispatch(MessageListener[] listeners,
java.lang.String message)