A B C D E F G H I J L M N O P R S T U V W 

A

abort() - Method in class org.cometd.client.BayeuxClient
Interrupts abruptly the communication with the Bayeux server.
abort() - Method in class org.cometd.client.transport.ClientTransport
Aborts this transport, usually by cancelling all pending Bayeux messages that require a response, such as /meta/connects, without waiting for a response.
abort() - Method in class org.cometd.client.transport.LongPollingTransport
 
accept(String) - Method in class org.cometd.client.transport.ClientTransport
 
accept(String) - Method in class org.cometd.client.transport.LongPollingTransport
 
ACK_FIELD - Static variable in class org.cometd.client.ext.AckExtension
 
AckExtension - Class in org.cometd.client.ext
This client-side extension enables the client to acknowledge to the server the messages that the client has received.
AckExtension() - Constructor for class org.cometd.client.ext.AckExtension
 
action - Variable in class org.cometd.client.transport.ClientTransport.FailureInfo
 
actionToState() - Method in class org.cometd.client.transport.ClientTransport.FailureInfo
 
add(ClientTransport) - Method in class org.cometd.client.transport.TransportRegistry
 

B

BACKOFF_INCREMENT_OPTION - Static variable in class org.cometd.client.BayeuxClient
 
BAYEUX_VERSION - Static variable in class org.cometd.client.BayeuxClient
 
BayeuxClient - Class in org.cometd.client
BayeuxClient is the implementation of a client for the Bayeux protocol.
BayeuxClient(String, ScheduledExecutorService, ClientTransport, ClientTransport...) - Constructor for class org.cometd.client.BayeuxClient
Creates a BayeuxClient that will connect to the Bayeux server at the given URL, with the given scheduler and with the given transport(s).
BayeuxClient(String, ClientTransport, ClientTransport...) - Constructor for class org.cometd.client.BayeuxClient
Creates a BayeuxClient that will connect to the Bayeux server at the given URL and with the given transport(s).
BayeuxClient.BayeuxClientChannel - Class in org.cometd.client
A channel scoped to this BayeuxClient.
BayeuxClient.State - Enum in org.cometd.client
The states that a BayeuxClient may assume
BayeuxClientChannel(ChannelId) - Constructor for class org.cometd.client.BayeuxClient.BayeuxClientChannel
 
BinaryExtension - Class in org.cometd.client.ext
A client extension that encodes byte[] or ByteBuffer into a BinaryData object using the Z85 format for outgoing messages, and decodes BinaryData objects back into byte[] or ByteBuffer for incoming messages.
BinaryExtension() - Constructor for class org.cometd.client.ext.BinaryExtension
 
BinaryExtension(boolean) - Constructor for class org.cometd.client.ext.BinaryExtension
 

C

cause - Variable in class org.cometd.client.transport.ClientTransport.FailureInfo
 
ClientTransport - Class in org.cometd.client.transport
ClientTransports are used by BayeuxClient to send and receive Bayeux messages.
ClientTransport(String, String, Map<String, Object>) - Constructor for class org.cometd.client.transport.ClientTransport
 
ClientTransport.Factory - Interface in org.cometd.client.transport
 
ClientTransport.FailureHandler - Interface in org.cometd.client.transport
 
ClientTransport.FailureInfo - Class in org.cometd.client.transport
 
CONNECTED - org.cometd.client.BayeuxClient.State
State assumed when this BayeuxClient is connected to the Bayeux server
CONNECTING - org.cometd.client.BayeuxClient.State
State assumed when the connect is being sent for the first time
customize(Request) - Method in class org.cometd.client.transport.LongPollingTransport
 

D

delay - Variable in class org.cometd.client.transport.ClientTransport.FailureInfo
 
disconnect(long) - Method in class org.cometd.client.BayeuxClient
Performs a disconnect and uses the given timeout to wait for the disconnect to complete.
disconnect(ClientSession.MessageListener) - Method in class org.cometd.client.BayeuxClient
 
DISCONNECTED - org.cometd.client.BayeuxClient.State
State assumed before the handshake and when the disconnect is completed
DISCONNECTING - org.cometd.client.BayeuxClient.State
State assumed when the disconnect is being sent

E

Empty() - Constructor for class org.cometd.client.transport.TransportListener.Empty
 
enqueueSend(Message.Mutable) - Method in class org.cometd.client.BayeuxClient
 
error - Variable in class org.cometd.client.transport.ClientTransport.FailureInfo
 

F

Factory(HttpClient) - Constructor for class org.cometd.client.transport.LongPollingTransport.Factory
 
FailureInfo() - Constructor for class org.cometd.client.transport.ClientTransport.FailureInfo
 

G

generateJSON(List<Message.Mutable>) - Method in class org.cometd.client.transport.ClientTransport
 
getAllowedTransports() - Method in class org.cometd.client.BayeuxClient
 
getAllowedTransports() - Method in class org.cometd.client.transport.TransportRegistry
 
getBackoff() - Method in class org.cometd.client.BayeuxClient
 
getBackoffIncrement() - Method in class org.cometd.client.BayeuxClient
 
getCookie(String) - Method in class org.cometd.client.BayeuxClient
Retrieves the first cookie with the given name, if available.
getCookieStore() - Method in class org.cometd.client.BayeuxClient
 
getCookieStore() - Method in class org.cometd.client.transport.HttpClientTransport
 
getId() - Method in class org.cometd.client.BayeuxClient
 
getKnownTransportNames() - Method in class org.cometd.client.BayeuxClient
 
getKnownTransports() - Method in class org.cometd.client.transport.TransportRegistry
 
getLag() - Method in class org.cometd.client.ext.TimesyncClientExtension
 
getMaxBackoff() - Method in class org.cometd.client.BayeuxClient
 
getMaxNetworkDelay() - Method in class org.cometd.client.transport.ClientTransport
 
getOffset() - Method in class org.cometd.client.ext.TimesyncClientExtension
 
getOption(String) - Method in class org.cometd.client.BayeuxClient
 
getOptionNames() - Method in class org.cometd.client.BayeuxClient
 
getOptions() - Method in class org.cometd.client.BayeuxClient
 
getServerTime() - Method in class org.cometd.client.ext.TimesyncClientExtension
 
getSession() - Method in class org.cometd.client.BayeuxClient.BayeuxClientChannel
 
getState() - Method in class org.cometd.client.BayeuxClient
 
getTransport() - Method in class org.cometd.client.BayeuxClient
 
getTransport(String) - Method in class org.cometd.client.BayeuxClient
 
getTransport(String) - Method in class org.cometd.client.transport.TransportRegistry
 
getURL() - Method in class org.cometd.client.BayeuxClient
 
getURL() - Method in class org.cometd.client.transport.ClientTransport
 

H

handle(ClientTransport.FailureInfo) - Method in interface org.cometd.client.transport.ClientTransport.FailureHandler
 
handshake(long) - Method in class org.cometd.client.BayeuxClient
Performs the handshake and waits at most the given time for the handshake to complete.
handshake(Map<String, Object>, long) - Method in class org.cometd.client.BayeuxClient
Performs the handshake with the given template and waits at most the given time for the handshake to complete.
handshake(Map<String, Object>, ClientSession.MessageListener) - Method in class org.cometd.client.BayeuxClient
 
handshake(ClientSession.MessageListener) - Method in class org.cometd.client.BayeuxClient
 
handshake(ClientSessionChannel.MessageListener) - Method in class org.cometd.client.BayeuxClient
HANDSHAKEN - org.cometd.client.BayeuxClient.State
State assumed when the handshake is received, but before connecting
HANDSHAKING - org.cometd.client.BayeuxClient.State
State assumed when the handshake is being sent
HttpClientTransport - Class in org.cometd.client.transport
 
HttpClientTransport(String, String, Map<String, Object>) - Constructor for class org.cometd.client.transport.HttpClientTransport
 

I

init() - Method in class org.cometd.client.transport.ClientTransport
 
init() - Method in class org.cometd.client.transport.LongPollingTransport
 
initialize() - Method in class org.cometd.client.BayeuxClient
 
isConnected() - Method in class org.cometd.client.BayeuxClient
 
isDisconnected() - Method in class org.cometd.client.BayeuxClient
 
isHandshook() - Method in class org.cometd.client.BayeuxClient
 

J

JSON_CONTEXT_OPTION - Static variable in class org.cometd.client.transport.ClientTransport
 

L

logger - Variable in class org.cometd.client.BayeuxClient
 
logger - Variable in class org.cometd.client.transport.ClientTransport
 
LongPollingTransport - Class in org.cometd.client.transport
 
LongPollingTransport(String, Map<String, Object>, HttpClient) - Constructor for class org.cometd.client.transport.LongPollingTransport
 
LongPollingTransport(Map<String, Object>, HttpClient) - Constructor for class org.cometd.client.transport.LongPollingTransport
 
LongPollingTransport.Factory - Class in org.cometd.client.transport
 

M

MAX_BACKOFF_OPTION - Static variable in class org.cometd.client.BayeuxClient
 
MAX_MESSAGE_SIZE_OPTION - Static variable in class org.cometd.client.transport.ClientTransport
 
MAX_NETWORK_DELAY_OPTION - Static variable in class org.cometd.client.transport.ClientTransport
 
MessageClientTransport - Interface in org.cometd.client.transport
Classes implementing MessageClientTransport indicate that the transport they provide receives messages without the need of a previous request, like it happens in HTTP long poll.
messagesFailure(Throwable, List<? extends Message>) - Method in class org.cometd.client.BayeuxClient
 

N

NAME - Static variable in class org.cometd.client.transport.LongPollingTransport
 
negotiate(Object[], String) - Method in class org.cometd.client.transport.TransportRegistry
 
newChannel(ChannelId) - Method in class org.cometd.client.BayeuxClient
 
newChannelId(String) - Method in class org.cometd.client.BayeuxClient
 
newClientTransport(String, Map<String, Object>) - Method in interface org.cometd.client.transport.ClientTransport.Factory
 
newClientTransport(String, Map<String, Object>) - Method in class org.cometd.client.transport.LongPollingTransport.Factory
 

O

onFailure(Throwable, List<? extends Message>) - Method in class org.cometd.client.BayeuxClient
Callback method invoked when the given messages have failed to be sent.
onFailure(Throwable, List<? extends Message>) - Method in class org.cometd.client.transport.TransportListener.Empty
 
onFailure(Throwable, List<? extends Message>) - Method in interface org.cometd.client.transport.TransportListener
Callback method invoked when a failure to send or receive messages occurs.
onMessages(List<Message.Mutable>) - Method in class org.cometd.client.BayeuxClient
Callback method invoke when the given messages have just arrived from the Bayeux server.
onMessages(List<Message.Mutable>) - Method in class org.cometd.client.transport.TransportListener.Empty
 
onMessages(List<Message.Mutable>) - Method in interface org.cometd.client.transport.TransportListener
Callback method invoked when a batch of message is received.
onSending(List<? extends Message>) - Method in class org.cometd.client.BayeuxClient
Callback method invoked when the given messages have hit the network towards the Bayeux server.
onSending(List<? extends Message>) - Method in class org.cometd.client.transport.TransportListener.Empty
 
onSending(List<? extends Message>) - Method in interface org.cometd.client.transport.TransportListener
Callback method invoked when the batch of messages is being sent.
onTransportFailure(String, String, Throwable) - Method in class org.cometd.client.BayeuxClient
 
onTransportFailure(Message, ClientTransport.FailureInfo, ClientTransport.FailureHandler) - Method in class org.cometd.client.BayeuxClient
 
org.cometd.client - package org.cometd.client
 
org.cometd.client.ext - package org.cometd.client.ext
 
org.cometd.client.transport - package org.cometd.client.transport
 

P

parseMessages(String) - Method in class org.cometd.client.transport.ClientTransport
 
PREFIX - Static variable in class org.cometd.client.transport.LongPollingTransport
 
processConnect(Message.Mutable) - Method in class org.cometd.client.BayeuxClient
 
processDisconnect(Message.Mutable) - Method in class org.cometd.client.BayeuxClient
 
processHandshake(Message.Mutable) - Method in class org.cometd.client.BayeuxClient
 
processMessage(Message.Mutable) - Method in class org.cometd.client.BayeuxClient
 
putCookie(HttpCookie) - Method in class org.cometd.client.BayeuxClient
 

R

rcv(ClientSession, Message.Mutable) - Method in class org.cometd.client.ext.BinaryExtension
 
rcvMeta(ClientSession, Message.Mutable) - Method in class org.cometd.client.ext.AckExtension
 
rcvMeta(ClientSession, Message.Mutable) - Method in class org.cometd.client.ext.TimesyncClientExtension
 
REHANDSHAKING - org.cometd.client.BayeuxClient.State
State assumed when a first handshake failed and the handshake is retried, or when the Bayeux server requests a re-handshake

S

scheduleConnect(long, long) - Method in class org.cometd.client.BayeuxClient
 
scheduleHandshake(long, long) - Method in class org.cometd.client.BayeuxClient
 
SCHEDULER_OPTION - Static variable in class org.cometd.client.transport.ClientTransport
 
send(ClientSession, Message.Mutable) - Method in class org.cometd.client.ext.BinaryExtension
 
send(ClientSession, Message.Mutable) - Method in class org.cometd.client.ext.TimestampClientExtension
 
send(Message.Mutable) - Method in class org.cometd.client.BayeuxClient
 
send(TransportListener, List<Message.Mutable>) - Method in class org.cometd.client.transport.ClientTransport
 
send(TransportListener, List<Message.Mutable>) - Method in class org.cometd.client.transport.LongPollingTransport
 
sendBatch() - Method in class org.cometd.client.BayeuxClient
 
sendConnect() - Method in class org.cometd.client.BayeuxClient
 
sendHandshake() - Method in class org.cometd.client.BayeuxClient
 
sendMessages(List<Message.Mutable>, Promise<Boolean>) - Method in class org.cometd.client.BayeuxClient
 
sendMeta(ClientSession, Message.Mutable) - Method in class org.cometd.client.ext.AckExtension
 
sendMeta(ClientSession, Message.Mutable) - Method in class org.cometd.client.ext.TimestampClientExtension
 
sendMeta(ClientSession, Message.Mutable) - Method in class org.cometd.client.ext.TimesyncClientExtension
 
setCookieStore(CookieStore) - Method in class org.cometd.client.transport.HttpClientTransport
 
setMaxNetworkDelay(long) - Method in class org.cometd.client.transport.ClientTransport
 
setMessageTransportListener(TransportListener) - Method in interface org.cometd.client.transport.MessageClientTransport
 
setOption(String, Object) - Method in class org.cometd.client.BayeuxClient
 
setURL(String) - Method in class org.cometd.client.transport.ClientTransport
 

T

terminate() - Method in class org.cometd.client.BayeuxClient
 
terminate() - Method in class org.cometd.client.transport.ClientTransport
Terminates this transport, usually by closing network connections opened directly by this transport.
TERMINATING - org.cometd.client.BayeuxClient.State
State assumed when the disconnect is received but terminal actions must be performed
TimestampClientExtension - Class in org.cometd.client.ext
 
TimestampClientExtension() - Constructor for class org.cometd.client.ext.TimestampClientExtension
 
TimesyncClientExtension - Class in org.cometd.client.ext
 
TimesyncClientExtension() - Constructor for class org.cometd.client.ext.TimesyncClientExtension
 
toString() - Method in class org.cometd.client.transport.ClientTransport.FailureInfo
 
transport - Variable in class org.cometd.client.transport.ClientTransport.FailureInfo
 
TransportListener - Interface in org.cometd.client.transport
Abstracts the communication between BayeuxClient and ClientTransport.
TransportListener.Empty - Class in org.cometd.client.transport
 
TransportRegistry - Class in org.cometd.client.transport
 
TransportRegistry() - Constructor for class org.cometd.client.transport.TransportRegistry
 

U

UNCONNECTED - org.cometd.client.BayeuxClient.State
State assumed after the handshake when the connection is broken
url - Variable in class org.cometd.client.transport.ClientTransport.FailureInfo
 
URL_OPTION - Static variable in class org.cometd.client.transport.ClientTransport
 

V

valueOf(String) - Static method in enum org.cometd.client.BayeuxClient.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.cometd.client.BayeuxClient.State
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitFor(long, BayeuxClient.State, BayeuxClient.State...) - Method in class org.cometd.client.BayeuxClient
Waits for this BayeuxClient to reach the given state(s) within the given time.
A B C D E F G H I J L M N O P R S T U V W