jvm.message
Interface MessageFilter


public abstract interface MessageFilter
extends java.io.Serializable

This is a class that is able to tell if it likes/dislikes a certain message. A client is able to use message filtering in order not to receive unwanted messages.


Written: Radu Sion
Version: 0.1
Source: MessageFilter.java

Visit Smart Software 

See Also:
Message

Fields inherited from class java.io.Serializable
serialVersionUID
 
Method Summary
 boolean filter(Message msg)
          This method determines if a certain message should go through this filter or not.
 

Method Detail

filter

public boolean filter(Message msg)
This method determines if a certain message should go through this filter or not. This filter should be used only on COPIES of the original message that gets sent, it might alter the parameter.
Parameters:
msg - Message to handle/filter. It should be a copy of the original !
Returns:
True if it should go through, false otherwise ...