|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.cometd.ClientImpl
public class ClientImpl
Field Summary | |
---|---|
protected AbstractBayeux |
_bayeux
|
Constructor Summary | |
---|---|
protected |
ClientImpl(AbstractBayeux bayeux)
|
protected |
ClientImpl(AbstractBayeux bayeux,
String idPrefix)
|
Method Summary | |
---|---|
void |
addExtension(org.cometd.Extension ext)
|
void |
addListener(org.cometd.ClientListener listener)
|
protected void |
addSubscription(ChannelImpl channel)
|
void |
deliver(org.cometd.Client from,
String toChannel,
Object data,
String id)
|
void |
deliverLazy(org.cometd.Client from,
String toChannel,
Object data,
String id)
|
void |
disconnect()
|
void |
doDeliverListeners()
|
protected void |
doDelivery(org.cometd.Client from,
org.cometd.Message msg)
|
void |
endBatch()
|
boolean |
equals(Object o)
|
JSON.Literal |
getAdvice()
Get the advice specific for this Client |
String |
getBrowserId()
|
String |
getConnectionType()
|
String |
getId()
|
long |
getInterval()
|
int |
getLag()
|
int |
getMaxQueue()
|
int |
getMessages()
|
Queue<org.cometd.Message> |
getQueue()
|
org.cometd.Channel[] |
getSubscriptions()
Get the subscribed to channels |
long |
getTimeout()
|
boolean |
hasMessages()
|
boolean |
hasNonLazyMessages()
|
boolean |
isExpired()
|
boolean |
isLocal()
|
boolean |
isMetaConnectDeliveryOnly()
|
void |
lazyResume()
Called by deliver to resume anything waiting on this client lazily |
void |
remove(boolean timeout)
|
void |
removeListener(org.cometd.ClientListener listener)
|
protected void |
removeSubscription(ChannelImpl channel)
|
int |
responded()
|
int |
responsePending()
|
void |
resume()
Called by deliver to resume anything waiting on this client. |
void |
returnMessages(List<org.cometd.Message> messages)
|
void |
setAdvice(JSON.Literal advice)
|
void |
setBrowserId(String id)
|
protected void |
setConnectionType(String type)
|
protected void |
setId(String id)
|
void |
setInterval(long intervalMS)
Set per client interval |
void |
setLag(int lag)
|
void |
setMaxQueue(int maxQueue)
|
void |
setMetaConnectDeliveryOnly(boolean deliverViaMetaConnectOnly)
|
void |
setTimeout(long timeoutMS)
Set per client timeout |
void |
startBatch()
|
List<org.cometd.Message> |
takeMessages()
|
String |
toString()
|
void |
unsubscribeAll()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AbstractBayeux _bayeux
Constructor Detail |
---|
protected ClientImpl(AbstractBayeux bayeux)
protected ClientImpl(AbstractBayeux bayeux, String idPrefix)
Method Detail |
---|
public void addExtension(org.cometd.Extension ext)
addExtension
in interface org.cometd.Client
public void deliver(org.cometd.Client from, String toChannel, Object data, String id)
deliver
in interface org.cometd.Client
public void deliverLazy(org.cometd.Client from, String toChannel, Object data, String id)
protected void doDelivery(org.cometd.Client from, org.cometd.Message msg)
public void doDeliverListeners()
public void setMetaConnectDeliveryOnly(boolean deliverViaMetaConnectOnly)
public boolean isMetaConnectDeliveryOnly()
public void startBatch()
startBatch
in interface org.cometd.Client
public void endBatch()
endBatch
in interface org.cometd.Client
public String getConnectionType()
public String getId()
getId
in interface org.cometd.Client
public boolean hasMessages()
hasMessages
in interface org.cometd.Client
public boolean hasNonLazyMessages()
public boolean isLocal()
isLocal
in interface org.cometd.Client
public void disconnect()
disconnect
in interface org.cometd.Client
public void remove(boolean timeout)
public boolean isExpired()
public int responded()
public int responsePending()
public void lazyResume()
public void resume()
public int getMessages()
public List<org.cometd.Message> takeMessages()
takeMessages
in interface org.cometd.Client
public void returnMessages(List<org.cometd.Message> messages)
public String toString()
toString
in class Object
protected void addSubscription(ChannelImpl channel)
protected void removeSubscription(ChannelImpl channel)
protected void setConnectionType(String type)
protected void setId(String id)
public void unsubscribeAll()
public void setBrowserId(String id)
public String getBrowserId()
public boolean equals(Object o)
equals
in class Object
public JSON.Literal getAdvice()
public void setAdvice(JSON.Literal advice)
advice
- specific for this clientpublic void addListener(org.cometd.ClientListener listener)
addListener
in interface org.cometd.Client
public void removeListener(org.cometd.ClientListener listener)
removeListener
in interface org.cometd.Client
public long getInterval()
public void setInterval(long intervalMS)
intervalMS
- timeout in MS for longpoll duration or 0 to use default from
AbstractBayeux.getMaxInterval()
.public long getTimeout()
public void setTimeout(long timeoutMS)
timeoutMS
- timeout in MS for longpoll duration or 0 to use default from
AbstractBayeux.getTimeout()
.public void setMaxQueue(int maxQueue)
setMaxQueue
in interface org.cometd.Client
public int getMaxQueue()
getMaxQueue
in interface org.cometd.Client
public Queue<org.cometd.Message> getQueue()
getQueue
in interface org.cometd.Client
public int getLag()
TimesyncExtension
public void setLag(int lag)
lag
- in msTimesyncExtension
public org.cometd.Channel[] getSubscriptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |