Class MxGatewayActiveAlarmsSubscription

java.lang.Object
com.zb.mom.ww.mxgateway.client.MxGatewayActiveAlarmsSubscription
All Implemented Interfaces:
AutoCloseable

public final class MxGatewayActiveAlarmsSubscription extends Object
Cancellable handle returned by queryActiveAlarms.

Wraps a caller-supplied StreamObserver and exposes a cancel() entry point that aborts the underlying gRPC call. The subscription also implements AutoCloseable so it can participate in try-with-resources blocks.

All lifecycle / cancellation behaviour is inherited from MxGatewayStreamSubscription (Client.Java-036).

  • Constructor Details

    • MxGatewayActiveAlarmsSubscription

      public MxGatewayActiveAlarmsSubscription()
  • Method Details

    • cancel

      public final void cancel()
      Cancels the underlying gRPC call. Safe to invoke before the call has started; cancellation is recorded and applied as soon as the stream attaches.
    • close

      public final void close()
      Specified by:
      close in interface AutoCloseable