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

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

public class NullMessageReader
extends Object
implements IMessageReader

Version:
$Id$
Author:
Claudio Quaresima - claudio.quaresima@gmail.com - 17/ago/09 20:24:36
See Also:
Serialized Form

Constructor Summary
NullMessageReader()
           
 
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

NullMessageReader

public NullMessageReader()
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.