org.cometd.server
Class MessagePool
java.lang.Object
org.cometd.server.MessagePool
- Direct Known Subclasses:
- AbstractBayeux
public class MessagePool
- extends Object
MessagePool
public MessagePool()
MessagePool
public MessagePool(int capacity)
getJSON
public org.eclipse.jetty.util.ajax.JSON getJSON()
- Returns:
- the
JSON instance used to convert data and ext fields
setJSON
public void setJSON(org.eclipse.jetty.util.ajax.JSON json)
- Parameters:
json - the JSON instance used to convert data and ext fields
getMsgJSON
public org.eclipse.jetty.util.ajax.JSON getMsgJSON()
- Returns:
- the
JSON instance used to serialize and deserialize
bayeux bayeux messages
setMsgJSON
public void setMsgJSON(org.eclipse.jetty.util.ajax.JSON msgJSON)
- Parameters:
msgJSON - the JSON instance used to serialize and deserialize
bayeux messages
getBatchJSON
public org.eclipse.jetty.util.ajax.JSON getBatchJSON()
- Returns:
- the
JSON instance used to deserialize batches of bayeux
messages
setBatchJSON
public void setBatchJSON(org.eclipse.jetty.util.ajax.JSON batchJSON)
- Parameters:
batchJSON - the JSON instance used to convert batches of bayeux
messages
newMessage
public MessageImpl newMessage()
newMessage
public MessageImpl newMessage(Message associated)
parse
public Message[] parse(Reader reader)
throws IOException
- Throws:
IOException
parse
public Message[] parse(String s)
throws IOException
- Throws:
IOException
parseTo
public void parseTo(String fodder,
List<Message> messages)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2011 Dojo Foundation. All Rights Reserved.