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

io.contek.invoker.hbdminverse.api.websocket.common.notification.NotificationWebSocketChannelId Maven / Gradle / Ivy

There is a newer version: 3.6.19
Show newest version
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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy