com.liferay.portal.kernel.messaging
Class BaseDestination

java.lang.Object
  extended by com.liferay.portal.kernel.messaging.BaseDestination
All Implemented Interfaces:
Destination
Direct Known Subclasses:
ArrayDispatcherDestination, IteratorDispatcherDestination

public abstract class BaseDestination
extends java.lang.Object
implements Destination

View Source

Author:
Michael C. Han

Constructor Summary
BaseDestination(java.lang.String name)
           
BaseDestination(java.lang.String name, int workersCoreSize, int workersMaxSize)
           
 
Method Summary
 void close()
           
 void close(boolean force)
           
protected  void doClose(boolean force)
           
protected  void doOpen()
           
abstract  int getListenerCount()
           
 java.lang.String getName()
           
 DestinationStatistics getStatistics()
           
protected  java.util.concurrent.ThreadPoolExecutor getThreadPoolExecutor()
           
protected  int getWorkersCoreSize()
           
protected  int getWorkersMaxSize()
           
 boolean isRegistered()
           
 void open()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.messaging.Destination
register, send, unregister
 

Constructor Detail

BaseDestination

public BaseDestination(java.lang.String name)

BaseDestination

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

close

public void close()
Specified by:
close in interface Destination

close

public void close(boolean force)
Specified by:
close in interface Destination

getStatistics

public DestinationStatistics getStatistics()
Specified by:
getStatistics in interface Destination

getListenerCount

public abstract int getListenerCount()
Specified by:
getListenerCount in interface Destination

getName

public java.lang.String getName()
Specified by:
getName in interface Destination

isRegistered

public boolean isRegistered()
Specified by:
isRegistered in interface Destination

open

public void open()
Specified by:
open in interface Destination

doClose

protected void doClose(boolean force)

doOpen

protected void doOpen()

getThreadPoolExecutor

protected java.util.concurrent.ThreadPoolExecutor getThreadPoolExecutor()

getWorkersCoreSize

protected int getWorkersCoreSize()

getWorkersMaxSize

protected int getWorkersMaxSize()