Package com.zb.mom.ww.mxgateway.client
Class MxGatewayActiveAlarmsSubscription
java.lang.Object
com.zb.mom.ww.mxgateway.client.MxGatewayActiveAlarmsSubscription
- All Implemented Interfaces:
AutoCloseable
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 Summary
Constructors -
Method Summary
-
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:
closein interfaceAutoCloseable
-