oracle.panama.messaging.transport
Interface GeneralHook
- public interface GeneralHook
The general hook interface. The general hook is
designed for logging, filtering, billing and other
general purposes. If the message is modified, the
modification should be effective for all related
devices, instead just one of them.
init
public void init(java.util.Properties properties)
- Initialize the hook.
- Parameters:
properties
- the hook's properties.
destroy
public void destroy()
- Destroy the hook.
onMessage
public void onMessage(Destination device,
SenderInfo si,
Message message)
- The single-device on-message hook.
- Parameters:
device
- the device related to the message.si
- the sender information.message
- the message.
onMessage
public void onMessage(Destination[] devices,
SenderInfo[] sis,
Message message)
- The multiple-device on-message hook.
- Parameters:
devices
- the devices related to the message.sis
- the senders' information.message
- the message.