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 Destination
public void afterPropertiesSet()
public void close()
close
in interface Destination
public void close(boolean force)
close
in interface Destination
public void copyDestinationEventListeners(Destination destination)
copyDestinationEventListeners
in interface Destination
public void copyMessageListeners(Destination destination)
copyMessageListeners
in interface Destination
public void destroy()
destroy
in interface Destination
public DestinationStatistics getDestinationStatistics()
getDestinationStatistics
in interface Destination
public String getDestinationType()
getDestinationType
in interface Destination
public int getMessageListenerCount()
getMessageListenerCount
in interface Destination
public Set<MessageListener> getMessageListeners()
getMessageListeners
in interface Destination
public String getName()
getName
in interface Destination
public boolean isRegistered()
isRegistered
in interface Destination
public void open()
open
in interface Destination
public boolean register(MessageListener messageListener)
register
in interface Destination
public boolean register(MessageListener messageListener, ClassLoader classLoader)
register
in interface Destination
public boolean removeDestinationEventListener(DestinationEventListener destinationEventListener)
removeDestinationEventListener
in interface Destination
public void removeDestinationEventListeners()
removeDestinationEventListeners
in interface Destination
public void send(Message message)
send
in interface Destination
public void setDestinationType(String destinationType)
public void setName(String name)
public boolean unregister(MessageListener messageListener)
unregister
in interface Destination
public boolean unregister(MessageListener messageListener, ClassLoader classLoader)
public void unregisterMessageListeners()
unregisterMessageListeners
in interface Destination
protected void fireMessageListenerRegisteredEvent(MessageListener messageListener)
protected void fireMessageListenerUnregisteredEvent(MessageListener messageListener)
protected boolean registerMessageListener(InvokerMessageListener invokerMessageListener)
protected boolean unregisterMessageListener(InvokerMessageListener invokerMessageListener)