Interface Callback
- All Known Subinterfaces:
AuthenticationControl.ControlAuthenticator
,ClientControl.QueueEventStream
,ClientControl.SessionEventStream
,ClientControl.SessionPropertiesStream
,Messaging.RequestHandler<T,
,R> Messaging.RequestStream<T,
,R> Stream
,TopicControl.MissingTopicNotificationStream
,TopicNotifications.TopicNotificationListener
,Topics.SubscriberStream
,Topics.ValueStream<V>
- All Known Implementing Classes:
Callback.Default
,ClientControl.QueueEventStream.Default
,ClientControl.SessionEventStream.Default
,ClientControl.SessionPropertiesStream.Default
,Messaging.FilteredRequestCallback.Default
,Stream.Default
,TopicControl.MissingTopicNotificationStream.Default
,TopicNotifications.TopicNotificationListener.Default
,Topics.SubscriberStream.Default
,Topics.ValueStream.Default
public interface Callback
Callback interface that provides responses from the server. Extensions of
this interface have callback methods that provide results for successful
calls.
The Stream
extension supports multiple responses for each call.
If the server returns a response for an unknown call context (typically a
late response for a call context has timed out), an error will be reported to
the session error handler
.
- Since:
- 5.1
- Author:
- DiffusionData Limited
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
onError
(ErrorReason errorReason) Notification of a contextual error related to this callback.
-
Method Details
-
onError
Notification of a contextual error related to this callback. This is analogous to an exception being raised. Situations in whichonError
is called include the session being closed, a communication timeout, or a problem with the provided parameters. No further calls will be made to this callback for the call context.- Parameters:
errorReason
- a value representing the error; this can be one of constants defined inErrorReason
, or a feature-specific reason
-