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

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

public class QueueMessages
extends Object
implements IQueueMessages

Author:
Francesco Cina 07/ago/2009
See Also:
Serialized Form

Constructor Summary
QueueMessages(int maxCodaLength)
           
 
Method Summary
 IQueueMessage get(long index)
           
 void offer(String aMessage)
           
 IQueueMessage peek()
           
 IQueueMessage poll()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueMessages

public QueueMessages(int maxCodaLength)
Method Detail

size

public int size()
Specified by:
size in interface IQueueMessages

offer

public void offer(String aMessage)
Specified by:
offer in interface IQueueMessages

peek

public IQueueMessage peek()
Specified by:
peek in interface IQueueMessages

poll

public IQueueMessage poll()
Specified by:
poll in interface IQueueMessages

get

public IQueueMessage get(long index)
Specified by:
get in interface IQueueMessages


Copyright © 2011. All Rights Reserved.