org.objectweb.dream.queue
Interface MessageMatcher
public interface MessageMatcher
Determines which messages in a buffer can be returned by calls to
BufferRemove.get()
and BufferRemove.remove()
. The criterion
that is implemented by a matcher to select messages can change dynamically,
i.e. different calls to acceptMessage(Message)
with the same message
specified as a parameter can return different results. Implementations of the
acceptMessage(Message)
should not be blocking, and should be as
efficient as possible, since this method is often called by buffers.
Field Summary |
static String |
ITF_NAME
The commonly used name to refer to an interface with this signature. |
Method Summary |
boolean |
acceptMessage(Message message)
Tests if the specified message can be returned from a buffer. |
ITF_NAME
static final String ITF_NAME
- The commonly used name to refer to an interface with this signature.
- See Also:
- Constant Field Values
acceptMessage
boolean acceptMessage(Message message)
- Tests if the specified message can be returned from a buffer.
- Parameters:
message
- the message to test; must not be null
.
- Returns:
- true only if the message can be returned.
Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.