All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.server.browserstreaming.StreamData Maven / Gradle / Ivy

The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.server.browserstreaming;

import io.deephaven.proto.backplane.grpc.Ticket;
import io.grpc.Context;

public class StreamData {
    /**
     * Provided access to the emulated stream metadata, if any.
     */
    public static final Context.Key STREAM_DATA_KEY = Context.key("stream-data");

    private final Ticket rpcTicket;
    private final int sequence;
    private final boolean halfClose;

    public StreamData(Ticket rpcTicket, int sequence, boolean halfClose) {
        this.rpcTicket = rpcTicket;
        this.sequence = sequence;
        this.halfClose = halfClose;
    }

    public Ticket getRpcTicket() {
        return rpcTicket;
    }

    public boolean isHalfClose() {
        return halfClose;
    }

    public int getSequence() {
        return sequence;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy