Package | com.pushtechnology.diffusion |
Interface | public interface ServiceTopicListener |
Since : | 4.1 |
A Service Topic is one that provides request/response capability (see ServiceTopicData). When a Client subscribes to a Service Topic then a Topic Load Message will be received by the Client that indicates that it is a Message#isServiceLoad() Service Load Message. In response to such a Message the Client application should create a ServiceTopicHandler using the Client connection DiffusionClientImpl#createServiceTopicHandler(Message, ServiceTopicListener) method and declaring a listener of this type to receive all responses and notifications from the Topic.
Method | Defined By | ||
---|---|---|---|
serviceError(errorDetails:ServiceTopicError):void
Notifies an error on a service request. | ServiceTopicListener | ||
serviceResponse(responseDetails:ServiceTopicResponse):void
Notifies a response from a service request. | ServiceTopicListener |
serviceError | () | method |
public function serviceError(errorDetails:ServiceTopicError):void
Notifies an error on a service request.
This would indicate that a previous call to ServiceTopicHandler#request(String, TopicMessage) has failed for some reason at the server.
Parameters
errorDetails:ServiceTopicError — encapsulates details of the error
|
serviceResponse | () | method |
public function serviceResponse(responseDetails:ServiceTopicResponse):void
Notifies a response from a service request.
This will return a response from a previous call of ServiceTopicHandler#request(String, TopicMessage).
Parameters
responseDetails:ServiceTopicResponse — encapsulates all details of the response.
|