Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomp.client.helpers
Class MessageAccumulator

java.lang.Object
  extended by org.projectodd.stilts.stomp.client.helpers.MessageAccumulator
All Implemented Interfaces:
MessageHandler

public class MessageAccumulator
extends Object
implements MessageHandler


Constructor Summary
MessageAccumulator()
           
MessageAccumulator(boolean shouldAck, boolean shouldNack)
           
 
Method Summary
 void clear()
           
 List<StompMessage> getMessages()
           
 void handle(StompMessage message)
           
 boolean isEmpty()
           
 List<String> messageIds()
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageAccumulator

public MessageAccumulator()

MessageAccumulator

public MessageAccumulator(boolean shouldAck,
                          boolean shouldNack)
Method Detail

messageIds

public List<String> messageIds()

handle

public void handle(StompMessage message)
Specified by:
handle in interface MessageHandler

getMessages

public List<StompMessage> getMessages()

size

public int size()

isEmpty

public boolean isEmpty()

clear

public void clear()

toString

public String toString()
Overrides:
toString in class Object

Stilts 0.1.0-SNAPSHOT

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.