All Superinterfaces:
Callback
All Known Subinterfaces:
AuthenticationControl.ControlAuthenticator, ClientControl.QueueEventStream, ClientControl.SessionEventStream, ClientControl.SessionPropertiesStream, Messaging.RequestHandler<T,R>, Messaging.RequestStream<T,R>, TopicControl.MissingTopicNotificationStream, TopicNotifications.TopicNotificationListener, Topics.SubscriberStream, Topics.ValueStream<V>
All Known Implementing Classes:
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 Stream extends Callback
An extension of Callback that allows many callbacks for each call context.

The server may return zero, one, or many results for a call; each result will be supplied to one of the callback methods. When no further results are expected for the call context, onClose() will be called. If a context is closed prematurely (for example, due to the session being closed), Callback.onError(ErrorReason) will be called. One of onClose or onError will be the final callback made for a call context.

Since:
5.1
Author:
DiffusionData Limited
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Abstract default callback.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notification that a stream context was closed normally.

    Methods inherited from interface com.pushtechnology.diffusion.client.callbacks.Callback

    onError
  • Method Details

    • onClose

      void onClose()
      Notification that a stream context was closed normally.

      No further calls will be made for the stream context.