public class DestinationWrapper extends Object implements Destination
Modifier and Type | Field and Description |
---|---|
protected Destination |
destination |
Constructor and Description |
---|
DestinationWrapper(Destination destination) |
Modifier and Type | Method and Description |
---|---|
boolean |
addDestinationEventListener(DestinationEventListener destinationEventListener) |
void |
close() |
void |
close(boolean force) |
void |
copyDestinationEventListeners(Destination destination) |
void |
copyMessageListeners(Destination destination) |
void |
destroy() |
DestinationStatistics |
getDestinationStatistics() |
int |
getMessageListenerCount() |
Set<MessageListener> |
getMessageListeners() |
String |
getName() |
boolean |
isRegistered() |
void |
open() |
boolean |
register(MessageListener messageListener) |
boolean |
register(MessageListener messageListener,
ClassLoader classLoader) |
boolean |
removeDestinationEventListener(DestinationEventListener destinationEventListener) |
void |
removeDestinationEventListeners() |
void |
send(Message message) |
boolean |
unregister(MessageListener messageListener) |
void |
unregisterMessageListeners() |
protected Destination destination
public DestinationWrapper(Destination destination)
public boolean addDestinationEventListener(DestinationEventListener destinationEventListener)
addDestinationEventListener
in interface Destination
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 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 boolean unregister(MessageListener messageListener)
unregister
in interface Destination
public void unregisterMessageListeners()
unregisterMessageListeners
in interface Destination