com.sun.grizzly.cometd.bayeux
Class Advice
java.lang.Object
com.sun.grizzly.cometd.bayeux.VerbBase
com.sun.grizzly.cometd.bayeux.Advice
- All Implemented Interfaces:
- Verb
public class Advice
- extends VerbBase
Bayeux Advise implementation.
See http://svn.xantus.org/shortbus/trunk/bayeux/protocol.txt for the technical
details.
The advice system provides a way for servers to inform clients of their
preferred mode of client operation. In conjunction with server-enforced limits,
Bayeux implementations can prevent resource exhaustion and inelegant failure in
several important edge cases. Since transport evenlopes are "pluggable" in
order to support differing "on the wire" behaviors, advice values may also vary
by transport type, even for the same conditions. What follows is a breif
description of the enumerations that are used in advices and their canonical
meanings.
- Author:
- Jeanfrancois Arcand
Nested classes/interfaces inherited from interface com.sun.grizzly.cometd.bayeux.Verb |
Verb.Type |
Fields inherited from class com.sun.grizzly.cometd.bayeux.VerbBase |
advice, ARRAY_END, ARRAY_START, authToken, channel, clientId, data, dataId, error, ext, first, follow, id, last, metaChannel, successful, type |
Methods inherited from class com.sun.grizzly.cometd.bayeux.VerbBase |
getAdvice, getAuthToken, getChannel, getClientId, getData, getDataId, getExt, getId, getJSONPostfix, getJSONPrefix, getMetaChannel, getType, hasValidAdvice, isFirst, isFollow, isLast, setAdvice, setAuthToken, setChannel, setClientId, setData, setDataId, setExt, setFirst, setFollow, setId, setLast |
Advice
public Advice()
getReconnect
public String getReconnect()
setReconnect
public void setReconnect(String reconnect)
getInterval
public Integer getInterval()
setInterval
public void setInterval(Integer interval)
getMultipleClients
public Boolean getMultipleClients()
setMultipleClients
public void setMultipleClients(Boolean multipleClients)
getHosts
public String[] getHosts()
setHosts
public void setHosts(String[] hosts)
toString
public String toString()
- Overrides:
toString
in class VerbBase
toJSON
public String toJSON()
- Description copied from interface:
Verb
- Return the JSON representation of the Verb.
getTransport
public String getTransport()
setTransport
public void setTransport(String transport)
isValid
public boolean isValid()
- Description copied from interface:
Verb
- Check whether the Verb is valid.
- Specified by:
isValid
in interface Verb
- Overrides:
isValid
in class VerbBase
Copyright © 2012 Oracle Corporation. All Rights Reserved.