io.contek.invoker.hbdminverse.api.websocket.common.notification.NotificationWebSocketChannelId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of invoker-hbdminverse-api Show documentation
Show all versions of invoker-hbdminverse-api Show documentation
Huobi Derivative Inverse Java API
package io.contek.invoker.hbdminverse.api.websocket.common.notification;
import io.contek.invoker.commons.websocket.BaseWebSocketChannelId;
import javax.annotation.concurrent.Immutable;
@Immutable
public abstract class NotificationWebSocketChannelId<
Message extends NotificationWebSocketChannelMessage>
extends BaseWebSocketChannelId {
protected NotificationWebSocketChannelId(String channel) {
super(channel);
}
public final String getTopic() {
return getValue();
}
@Override
public final boolean accepts(Message message) {
return getTopic().equals(message.topic);
}
}