org.cometd.server
Class MessageImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.cometd.server.MessageImpl
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,Object>, Message, org.eclipse.jetty.util.ajax.JSON.Generator
public class MessageImpl
- extends HashMap<String,Object>
- implements Message, org.eclipse.jetty.util.ajax.JSON.Generator
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
MessageImpl
public MessageImpl()
MessageImpl
public MessageImpl(MessagePool bayeux)
addJSON
public void addJSON(Appendable buffer)
- Specified by:
addJSON in interface org.eclipse.jetty.util.ajax.JSON.Generator
clear
public void clear()
- Specified by:
clear in interface Map<String,Object>- Overrides:
clear in class HashMap<String,Object>
clone
public Object clone()
- Specified by:
clone in interface Message- Overrides:
clone in class HashMap<String,Object>
decRef
public void decRef()
entrySet
public Set<Map.Entry<String,Object>> entrySet()
- Specified by:
entrySet in interface Map<String,Object>- Overrides:
entrySet in class HashMap<String,Object>
getAssociated
public Message getAssociated()
- Specified by:
getAssociated in interface Message
getBuffer
public ByteBuffer getBuffer()
getChannel
public String getChannel()
- Specified by:
getChannel in interface Message
getClientId
public String getClientId()
- Specified by:
getClientId in interface Message
getData
public Object getData()
- Specified by:
getData in interface Message
getExt
public Map<String,Object> getExt(boolean create)
- Specified by:
getExt in interface Message
getId
public String getId()
- Specified by:
getId in interface Message
getJSON
public String getJSON()
getRefs
public int getRefs()
incRef
public void incRef()
isLazy
public boolean isLazy()
- Lazy messages are queued but do not wake up waiting clients.
- Returns:
- true if message is lazy
isSuccessful
public boolean isSuccessful()
keySet
public Set<String> keySet()
- Specified by:
keySet in interface Map<String,Object>- Overrides:
keySet in class HashMap<String,Object>
put
public Object put(String key,
Object value)
- Specified by:
put in interface Map<String,Object>- Overrides:
put in class HashMap<String,Object>
putAll
public void putAll(Map<? extends String,? extends Object> m)
- Specified by:
putAll in interface Map<String,Object>- Overrides:
putAll in class HashMap<String,Object>
remove
public Object remove(Object key)
- Specified by:
remove in interface Map<String,Object>- Overrides:
remove in class HashMap<String,Object>
setAssociated
public void setAssociated(Message associated)
setBuffer
public void setBuffer(ByteBuffer buffer)
- Parameters:
buffer - A cached buffer containing HTTP response headers and message
content, to be reused when sending one message to multiple
clients
setLazy
public void setLazy(boolean lazy)
- Lazy messages are queued but do not wake up waiting clients.
- Parameters:
lazy - true if message is lazy
toString
public String toString()
- Overrides:
toString in class AbstractMap<String,Object>
Copyright © 2008-2011 Dojo Foundation. All Rights Reserved.