Interface StreamingSubscribedResponseReceiver

All Superinterfaces:
StreamingResponseReceiver
All Known Subinterfaces:
ForecastSnapshotSubscribedReceiver, MonitoringSetsSubscribedReceiver, RealTimeSnapshotSubscribedReceiver

public interface StreamingSubscribedResponseReceiver extends StreamingResponseReceiver
Base interface for receiver to be invoked when new data is available for a subscribed pollable GET
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called after subscription is initialized, allowing receiver to unsubscribe on errors that are deemed fatal

    Methods inherited from interface energy.trolie.client.StreamingResponseReceiver

    error
  • Method Details

    • setSubscription

      default void setSubscription(RequestSubscription subscription)
      Called after subscription is initialized, allowing receiver to unsubscribe on errors that are deemed fatal
      Parameters:
      subscription - subscription to set