com.googlecode.jpattern.service.log.reader
Interface IMessageReader

All Superinterfaces:
Serializable
All Known Implementing Classes:
MessageFilteredReader, MessageReader, NullMessageReader

public interface IMessageReader
extends Serializable

Author:
Francesco Cina 31/lug/2011

Method Summary
 IQueueMessage read()
          read the first message in the queue.
 IQueueMessage read(long lastReadedMessageId)
          Read the message with a specific id
 

Method Detail

read

IQueueMessage read()
read the first message in the queue. It's the same of read(-1);

Returns:

read

IQueueMessage read(long lastReadedMessageId)
Read the message with a specific id

Parameters:
lastReadedMessageId -
Returns:


Copyright © 2011. All Rights Reserved.