| Interface | Description |
|---|---|
| Channel |
Interface for communication channels
A channel handles the protocol (ping, reconnections, ...) between the client and the server
A Channel should be created using a ChannelFactory
|
| ChannelBuilder |
SPI for builders of remoting and messaging channels
Modules that provide custom channels should also register a ChannelBuilder implementation in the
ServiceLoader registry
(i.e. a file META-INF/services/org.granite.client.messaging.channel.ChannelBuilder)
The ChannelFactory will look for all registered channel builders and find the first one able to build the requested channel type. |
| ChannelFactory |
ChannelFactory is the main entry point for using the low-level GraniteDS remoting and messaging API.
|
| ChannelStatusListener | |
| ChannelStatusNotifier | |
| ChannelType |
Convenience constants for all built-in messaging channel types
To be used in
ChannelFactory.setMessagingTransport(String,org.granite.client.messaging.transport.Transport) or ChannelFactory.newMessagingChannel(java.lang.String, java.lang.String). |
| Credentials |
Interface for channel credentials
|
| MessagingChannel |
SPI for messaging channels
A messaging channel adds some functionality to channel, mostly consumer management
|
| MessagingChannel.ChannelResponseListener | |
| RemotingChannel |
SPI for remoting channels
|
| ResponseMessageFuture |
Future-like interface to synchronously wait for a response
|
| SessionAwareChannel |
Interface for channels for which the session id can be forced
Used to propagate session id from a master channel to the others
|
| Class | Description |
|---|---|
| AbstractChannel<T extends Transport> | |
| AbstractChannelFactory | |
| AbstractHTTPChannel | |
| AMFChannelFactory |
Implementation of a ChannelFactory using AMF serialization
|
| AsyncToken | |
| DefaultChannelBuilder |
Default implementation of ChannelBuilder handling the built-in channel types (long polling and websocket)
This can also be used to specify custom url mappings for the server channel uris:
channelFactory.setChannelBuilder(new DefaultChannelBuilder("/customremoting/amf", "/customgravity/amf", "/customws/amf");
channelFactory.start();
|
| ImmediateFailureResponseMessageFuture | |
| JMFChannelFactory |
Implementation of a ChannelFactory using JMF serialization
|
| UsernamePasswordCredentials |
Simple username/password credentials
|