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 CinĂ  07/ago/2009
See Also:
Serialized Form

Constructor Summary
QueueMessages(int maxCodaLength)
           
 
Method Summary
 String get(int index)
           
 Iterator<String> iterator()
           
 boolean offer(String aMessage)
           
 String peek()
           
 String 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 boolean offer(String aMessage)
Specified by:
offer in interface IQueueMessages

peek

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

poll

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

get

public String get(int index)
Specified by:
get in interface IQueueMessages

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface IQueueMessages


Copyright © 2011. All Rights Reserved.