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