| Interface | Description |
|---|---|
| RemoteService.RemoteServiceInvocationChain | |
| ResponseListener |
Callback interface for remoting/messaging asynchronous events
|
| TopicAgent |
Interface for consumer/producer style message agents
|
| TopicMessageListener |
Callback interface for message listeners
Called when an incoming message is received
|
| TopicSubscriptionListener |
Callback interface for message listeners
Called when an incoming message is received
|
| Class | Description |
|---|---|
| AbstractTopicAgent | |
| AllInOneResponseListener |
Convenience abstract listener for response events
|
| ClientAliasRegistry |
Client-side implementation of AliasRegistry that scan specified packaged to find classes
annotated with
RemoteAlias |
| Consumer |
Consumer class that allows to receive messages from a remote pub/sub destination
Consumer consumer = new Consumer(messagingChannel, "myDestination", "myTopic");
consumer.subscribe().get();
consumer.addMessageListener(new TopicMessageListener() {
public void onMessage(TopicMessageEvent event) {
System.out.println("Received: " + event.getData());
}
});
|
| DefaultResponseListener |
Empty response listener that does nothing
|
| Producer |
Producer class that allows to publish messages on a remote pub/sub destination
All
Producer.publish(java.lang.Object, org.granite.client.messaging.ResponseListener...) methods are asynchronous and won't block the thread initiating the call. |
| RemoteService |
RemoteService allows to call a remote service using RPC style
Calling a service is asynchronous and won't block the thread initiating the call.
|
| RemoteService.RemoteServiceInvocation | |
| ResponseListenerDispatcher | |
| ResultFaultIssuesResponseListener |
Convenience listener class that merges all client-side failure types as a single issue type
|
| ResultIssuesResponseListener | |
| ServerApp |
Simple server application definition holding basic network parameters
(server name, port, context root)
It can be used to create channels when you don't exactly know how the final URI should look like
The channel builder for the requested channel type will then build the correct URI using the server app parameters
|
| Annotation Type | Description |
|---|---|
| RemoteAlias |
Annotation that indicates the remote name of a client class
|