Index

A B C D E F G H I J L M N O P R S T U V W 
All Classes|All Packages|Constant Field Values|Deprecated API

A

abort() - Method in class org.cometd.client.BayeuxClient
Interrupts abruptly the communication with the Bayeux server.
abort(Throwable) - 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.
accept(String) - Method in class org.cometd.client.transport.ClientTransport
 
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
 
addTransportListener(TransportListener) - Method in class org.cometd.client.BayeuxClient
 

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.BackOffStrategy - Interface in org.cometd.client
A strategy to controls wait times of the retry attempts in case of heartbeat failures.
BayeuxClient.BackOffStrategy.Constant - Class in org.cometd.client
A back off strategy that always returns the same wait time.
BayeuxClient.BackOffStrategy.Linear - Class in org.cometd.client
A strategy that increases the wait time linearly up to a maximum.
BayeuxClient.BayeuxClientChannel - Class in org.cometd.client
A channel scoped to this BayeuxClient.
BayeuxClient.Scheduler - Class in org.cometd.client
 
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
Deprecated.
ClientTransport(String, String, Map<String, Object>, ScheduledExecutorService) - 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 - Enum constant in enum org.cometd.client.BayeuxClient.State
State assumed when this BayeuxClient is connected to the Bayeux server
CONNECTING - Enum constant in enum org.cometd.client.BayeuxClient.State
State assumed when the connect is being sent for the first time
Constant(long) - Constructor for class org.cometd.client.BayeuxClient.BackOffStrategy.Constant
 
current() - Method in class org.cometd.client.BayeuxClient.BackOffStrategy.Constant
 
current() - Method in interface org.cometd.client.BayeuxClient.BackOffStrategy
 
current() - Method in class org.cometd.client.BayeuxClient.BackOffStrategy.Linear
 

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 - Enum constant in enum org.cometd.client.BayeuxClient.State
State assumed before the handshake and when the disconnect is completed
DISCONNECTING - Enum constant in enum org.cometd.client.BayeuxClient.State
State assumed when the disconnect is being sent

E

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

F

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
 
getBackOffStrategy() - 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.
getCookies(URI) - Method in class org.cometd.client.transport.HttpClientTransport
 
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
 
getJSONContextClient() - Method in class org.cometd.client.transport.ClientTransport
 
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
 
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
 
getScheduler() - Method in class org.cometd.client.transport.ClientTransport
 
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
 
HANDSHAKEN - Enum constant in enum org.cometd.client.BayeuxClient.State
State assumed when the handshake is received, but before connecting
HANDSHAKING - Enum constant in enum 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
Deprecated.
HttpClientTransport(String, String, Map<String, Object>, ScheduledExecutorService) - Constructor for class org.cometd.client.transport.HttpClientTransport
 

I

init() - Method in class org.cometd.client.transport.ClientTransport
 
initialize() - Method in class org.cometd.client.BayeuxClient
 
initScheduler() - Method in class org.cometd.client.transport.ClientTransport
 
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

Linear() - Constructor for class org.cometd.client.BayeuxClient.BackOffStrategy.Linear
 
Linear(long, long) - Constructor for class org.cometd.client.BayeuxClient.BackOffStrategy.Linear
 

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
 
MAX_SEND_BAYEUX_MESSAGE_SIZE_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

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
 
next() - Method in class org.cometd.client.BayeuxClient.BackOffStrategy.Constant
 
next() - Method in class org.cometd.client.BayeuxClient.BackOffStrategy.Linear
 
next() - Method in interface org.cometd.client.BayeuxClient.BackOffStrategy
 
nonFirstSubscribe(Message.Mutable, ClientSessionChannel.MessageListener, ClientSession.MessageListener) - Method in class org.cometd.client.BayeuxClient.BayeuxClientChannel
 
nonLastUnSubscribe(Message.Mutable, ClientSessionChannel.MessageListener, ClientSession.MessageListener) - Method in class org.cometd.client.BayeuxClient.BayeuxClientChannel
 

O

onFailure(Throwable, List<? extends Message>) - Method in class org.cometd.client.BayeuxClient
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
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
onSending(List<? extends Message>) - Method in interface org.cometd.client.transport.TransportListener
Callback method invoked when the batch of messages is being sent.
onTimeout(List<? extends Message>, Promise<Long>) - Method in interface org.cometd.client.transport.TransportListener
Callback method invoked when the send of a batch of messages expires before receiving a response from the server, controlled by the maxNetworkDelay option.
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
 
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 - Enum constant in enum 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
removeTransportListener(TransportListener) - Method in class org.cometd.client.BayeuxClient
 
reset() - Method in class org.cometd.client.BayeuxClient.BackOffStrategy.Constant
 
reset() - Method in class org.cometd.client.BayeuxClient.BackOffStrategy.Linear
 
reset() - Method in interface org.cometd.client.BayeuxClient.BackOffStrategy
Resets the wait time.

S

scheduleConnect(long, long) - Method in class org.cometd.client.BayeuxClient
 
scheduleHandshake(long, long) - Method in class org.cometd.client.BayeuxClient
 
Scheduler(int) - Constructor for class org.cometd.client.BayeuxClient.Scheduler
 
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
 
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
 
setBackOffStrategy(BayeuxClient.BackOffStrategy) - Method in class org.cometd.client.BayeuxClient
 
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
 
shutdownScheduler() - Method in class org.cometd.client.transport.ClientTransport
 
storeCookies(URI, Map<String, List<String>>) - Method in class org.cometd.client.transport.HttpClientTransport
 

T

terminate() - Method in class org.cometd.client.transport.ClientTransport
Terminates this transport, usually by closing network connections opened directly by this transport.
terminate(Throwable) - Method in class org.cometd.client.BayeuxClient
 
TERMINATING - Enum constant in enum 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.BayeuxClient
 
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
Deprecated.
use TransportListener directly instead.
TransportRegistry - Class in org.cometd.client.transport
 
TransportRegistry() - Constructor for class org.cometd.client.transport.TransportRegistry
 

U

UNCONNECTED - Enum constant in enum 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 
All Classes|All Packages|Constant Field Values|Deprecated API