public abstract class BaseAsyncDestination extends BaseDestination
Modifier and Type | Field and Description |
---|---|
protected PortalExecutorManager |
portalExecutorManager |
protected com.liferay.registry.ServiceTracker<PortalExecutorManager,PortalExecutorManager> |
serviceTracker |
messageListeners, name
Constructor and Description |
---|
BaseAsyncDestination() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
close(boolean force) |
protected RejectedExecutionHandler |
createRejectionExecutionHandler()
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
void |
destroy() |
protected abstract void |
dispatch(Set<MessageListener> messageListeners,
Message message) |
DestinationStatistics |
getDestinationStatistics() |
int |
getMaximumQueueSize() |
protected ThreadPoolExecutor |
getThreadPoolExecutor()
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
int |
getWorkersCoreSize() |
int |
getWorkersMaxSize() |
void |
open() |
protected void |
populateMessageFromThreadLocals(Message message) |
protected void |
populateThreadLocalsFromMessage(Message message) |
void |
send(Message message) |
void |
setMaximumQueueSize(int maximumQueueSize) |
void |
setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
void |
setWorkersCoreSize(int workersCoreSize) |
void |
setWorkersMaxSize(int workersMaxSize) |
addDestinationEventListener, close, copyDestinationEventListeners, copyMessageListeners, fireMessageListenerRegisteredEvent, fireMessageListenerUnregisteredEvent, getMessageListenerCount, getMessageListeners, getName, isRegistered, register, register, registerMessageListener, removeDestinationEventListener, removeDestinationEventListeners, setName, unregister, unregister, unregisterMessageListener, unregisterMessageListeners
protected volatile PortalExecutorManager portalExecutorManager
protected com.liferay.registry.ServiceTracker<PortalExecutorManager,PortalExecutorManager> serviceTracker
public void afterPropertiesSet()
afterPropertiesSet
in class BaseDestination
public void close(boolean force)
close
in interface Destination
close
in class BaseDestination
public void destroy()
destroy
in interface Destination
destroy
in class BaseDestination
public DestinationStatistics getDestinationStatistics()
getDestinationStatistics
in interface Destination
getDestinationStatistics
in class BaseDestination
public int getMaximumQueueSize()
public int getWorkersCoreSize()
public int getWorkersMaxSize()
public void open()
open
in interface Destination
open
in class BaseDestination
public void send(Message message)
send
in interface Destination
send
in class BaseDestination
public void setMaximumQueueSize(int maximumQueueSize)
@Deprecated public void setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler)
public void setWorkersCoreSize(int workersCoreSize)
public void setWorkersMaxSize(int workersMaxSize)
@Deprecated protected RejectedExecutionHandler createRejectionExecutionHandler()
protected abstract void dispatch(Set<MessageListener> messageListeners, Message message)
@Deprecated protected ThreadPoolExecutor getThreadPoolExecutor()
protected void populateMessageFromThreadLocals(Message message)
protected void populateThreadLocalsFromMessage(Message message)