com.googlecode.jpattern.service.log.reader
Class MessageFilteredReader

java.lang.Object
  extended by com.googlecode.jpattern.service.log.reader.MessageFilteredReader
All Implemented Interfaces:
IMessageReader, Serializable

public class MessageFilteredReader
extends Object
implements IMessageReader

See Also:
Serialized Form

Constructor Summary
MessageFilteredReader(IMessageReader aMessageReader, IFilter aFilter)
           
 
Method Summary
 IQueueMessage read()
          read the first message in the queue.
 IQueueMessage read(long lastReadedMessageId)
          Read the message with a specific id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageFilteredReader

public MessageFilteredReader(IMessageReader aMessageReader,
                             IFilter aFilter)
Method Detail

read

public IQueueMessage read()
Description copied from interface: IMessageReader
read the first message in the queue. It's the same of read(-1);

Specified by:
read in interface IMessageReader
Returns:

read

public IQueueMessage read(long lastReadedMessageId)
Description copied from interface: IMessageReader
Read the message with a specific id

Specified by:
read in interface IMessageReader
Returns:


Copyright © 2011. All Rights Reserved.