package com.zb.mom.ww.mxgateway.client;

import io.grpc.stub.StreamObserver;
import mxaccess_gateway.v1.MxaccessGateway.ActiveAlarmSnapshot;
import mxaccess_gateway.v1.MxaccessGateway.QueryActiveAlarmsRequest;

/**
 * Cancellable handle returned by {@code queryActiveAlarms}.
 *
 * <p>Wraps a caller-supplied {@link StreamObserver} and exposes a
 * {@link #cancel()} entry point that aborts the underlying gRPC call. The
 * subscription also implements {@link AutoCloseable} so it can participate in
 * try-with-resources blocks.
 *
 * <p>All lifecycle / cancellation behaviour is inherited from
 * {@link MxGatewayStreamSubscription} (Client.Java-036).
 */
public final class MxGatewayActiveAlarmsSubscription
        extends MxGatewayStreamSubscription<QueryActiveAlarmsRequest, ActiveAlarmSnapshot> {
    public MxGatewayActiveAlarmsSubscription() {
        super("client cancelled active-alarms query");
    }
}
