org.cometd.server
Class ServerMessagePool

java.lang.Object
  extended by org.cometd.server.ServerMessagePool

public class ServerMessagePool
extends java.lang.Object


Constructor Summary
ServerMessagePool()
           
ServerMessagePool(int capacity)
           
 
Method Summary
 org.eclipse.jetty.util.ajax.JSON getBatchJSON()
           
 org.eclipse.jetty.util.ajax.JSON getJSON()
           
 org.eclipse.jetty.util.ajax.JSON getMsgJSON()
           
 ServerMessage.Mutable getServerMessage()
           
 ServerMessage.Mutable parseMessage(java.lang.String s)
           
 ServerMessage.Mutable[] parseMessages(java.io.Reader reader)
           
 ServerMessage.Mutable[] parseMessages(java.lang.String s)
           
 void setBatchJSON(org.eclipse.jetty.util.ajax.JSON batchJSON)
           
 void setJSON(org.eclipse.jetty.util.ajax.JSON json)
           
 void setMsgJSON(org.eclipse.jetty.util.ajax.JSON msgJSON)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerMessagePool

public ServerMessagePool()

ServerMessagePool

public ServerMessagePool(int capacity)
Method Detail

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

getServerMessage

public ServerMessage.Mutable getServerMessage()

parseMessages

public ServerMessage.Mutable[] parseMessages(java.io.Reader reader)
                                      throws java.io.IOException
Throws:
java.io.IOException

parseMessages

public ServerMessage.Mutable[] parseMessages(java.lang.String s)
                                      throws java.io.IOException
Throws:
java.io.IOException

parseMessage

public ServerMessage.Mutable parseMessage(java.lang.String s)
                                   throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Dojo Foundation. All Rights Reserved.