public abstract class BaseDestination extends Object implements Destination
| Modifier and Type | Field and Description |
|---|---|
protected Set<MessageListener> |
messageListeners |
protected String |
name |
| Constructor and Description |
|---|
BaseDestination() |
protected Set<MessageListener> messageListeners
protected String name
public boolean addDestinationEventListener(DestinationEventListener destinationEventListener)
addDestinationEventListener in interface Destinationpublic void afterPropertiesSet()
public void close()
close in interface Destinationpublic void close(boolean force)
close in interface Destinationpublic void copyDestinationEventListeners(Destination destination)
copyDestinationEventListeners in interface Destinationpublic void copyMessageListeners(Destination destination)
copyMessageListeners in interface Destinationpublic void destroy()
destroy in interface Destinationpublic DestinationStatistics getDestinationStatistics()
getDestinationStatistics in interface Destinationpublic String getDestinationType()
getDestinationType in interface Destinationpublic int getMessageListenerCount()
getMessageListenerCount in interface Destinationpublic Set<MessageListener> getMessageListeners()
getMessageListeners in interface Destinationpublic String getName()
getName in interface Destinationpublic boolean isRegistered()
isRegistered in interface Destinationpublic void open()
open in interface Destinationpublic boolean register(MessageListener messageListener)
register in interface Destinationpublic boolean register(MessageListener messageListener, ClassLoader classLoader)
register in interface Destinationpublic boolean removeDestinationEventListener(DestinationEventListener destinationEventListener)
removeDestinationEventListener in interface Destinationpublic void removeDestinationEventListeners()
removeDestinationEventListeners in interface Destinationpublic void send(Message message)
send in interface Destinationpublic void setDestinationType(String destinationType)
public void setName(String name)
public boolean unregister(MessageListener messageListener)
unregister in interface Destinationpublic boolean unregister(MessageListener messageListener, ClassLoader classLoader)
public void unregisterMessageListeners()
unregisterMessageListeners in interface Destinationprotected void fireMessageListenerRegisteredEvent(MessageListener messageListener)
protected void fireMessageListenerUnregisteredEvent(MessageListener messageListener)
protected boolean registerMessageListener(InvokerMessageListener invokerMessageListener)
protected boolean unregisterMessageListener(InvokerMessageListener invokerMessageListener)