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

com.microsoft.signalr.StreamItem Maven / Gradle / Ivy

There is a newer version: 9.0.0-preview.7.24406.2
Show newest version
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

package com.microsoft.signalr;

import java.util.Map;

public final class StreamItem extends HubMessage {
    private final int type = HubMessageType.STREAM_ITEM.value;
    private Map headers;
    private final String invocationId;
    private final Object item;

    public StreamItem(Map headers, String invocationId, Object item) {
        if (headers != null && !headers.isEmpty()) {
            this.headers = headers;
        }
        this.invocationId = invocationId;
        this.item = item;
    }

    public Map getHeaders() {
        return headers;
    }

    public String getInvocationId() {
        return invocationId;
    }

    public Object getItem() {
        return item;
    }

    @Override
    public HubMessageType getMessageType() {
        return HubMessageType.STREAM_ITEM;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy