net.lessy.util.messaging
Interface VetoableMessageListener
- All Superinterfaces:
- MessageListener
public interface VetoableMessageListener
- extends MessageListener
Every object that would like to receive vetoable messages sent to a channel,
has to implement this interface and register at the channel.
If the listener wants to raise veto against a message, it must throw
a MessageVetoException in the method checkVetoableMessage().
- Author:
- Tim Wellhausen
- See Also:
Channel,
MessageVetoException
checkVetoableMessage
void checkVetoableMessage(Message message)
throws MessageVetoException
- Throws:
MessageVetoException
Copyright © 2012. All Rights Reserved.