|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cometd.server.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(Extension ext)
|
void |
addListener(ClientListener listener)
|
protected void |
addSubscription(ChannelImpl channel)
|
void |
deliver(Client from,
String toChannel,
Object data,
String id)
|
void |
deliverLazy(Client from,
String toChannel,
Object data,
String id)
|
void |
disconnect()
|
void |
doDeliverListeners()
|
protected void |
doDelivery(Client from,
Message msg)
|
void |
endBatch()
|
boolean |
equals(Object o)
|
org.eclipse.jetty.util.ajax.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<Message> |
getQueue()
|
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 |
removeExtension(Extension ext)
|
void |
removeListener(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<Message> messages)
|
void |
setAdvice(org.eclipse.jetty.util.ajax.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<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(Extension ext)
addExtension in interface Clientpublic void removeExtension(Extension ext)
removeExtension in interface Client
public void deliver(Client from,
String toChannel,
Object data,
String id)
deliver in interface Client
public void deliverLazy(Client from,
String toChannel,
Object data,
String id)
protected void doDelivery(Client from,
Message msg)
public void doDeliverListeners()
public void setMetaConnectDeliveryOnly(boolean deliverViaMetaConnectOnly)
public boolean isMetaConnectDeliveryOnly()
public void startBatch()
startBatch in interface Clientpublic void endBatch()
endBatch in interface Clientpublic String getConnectionType()
public String getId()
getId in interface Clientpublic boolean hasMessages()
hasMessages in interface Clientpublic boolean hasNonLazyMessages()
public boolean isLocal()
isLocal in interface Clientpublic void disconnect()
disconnect in interface Clientpublic void remove(boolean timeout)
public boolean isExpired()
public int responded()
public int responsePending()
public void lazyResume()
public void resume()
public int getMessages()
public List<Message> takeMessages()
takeMessages in interface Clientpublic void returnMessages(List<Message> messages)
public String toString()
toString in class Objectprotected 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 Objectpublic org.eclipse.jetty.util.ajax.JSON.Literal getAdvice()
public void setAdvice(org.eclipse.jetty.util.ajax.JSON.Literal advice)
advice - specific for this clientpublic void addListener(ClientListener listener)
addListener in interface Clientpublic void removeListener(ClientListener listener)
removeListener in interface Clientpublic 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 Clientpublic int getMaxQueue()
getMaxQueue in interface Clientpublic Queue<Message> getQueue()
getQueue in interface Clientpublic int getLag()
TimesyncExtensionpublic void setLag(int lag)
lag - in msTimesyncExtensionpublic Channel[] getSubscriptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||