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

Method Summary
 void checkVetoableMessage(Message message)
           
 
Methods inherited from interface net.lessy.util.messaging.MessageListener
receiveMessage
 

Method Detail

checkVetoableMessage

void checkVetoableMessage(Message message)
                          throws MessageVetoException
Throws:
MessageVetoException


Copyright © 2012. All Rights Reserved.