com.microsoft.signalr.StreamItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalr Show documentation
Show all versions of signalr Show documentation
ASP.NET Core SignalR Client for Java applications
// 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