Home / Class/ StompSubscription Class — netty Architecture

StompSubscription Class — netty Architecture

Architecture documentation for the StompSubscription class in StompSubscription.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b713d3d2_6f91_536f_cb0a_b1071ad1f70d["StompSubscription"]
  f1ea7dde_5ba2_f7c5_1096_7a9ae1ac19eb["StompSubscription.java"]
  b713d3d2_6f91_536f_cb0a_b1071ad1f70d -->|defined in| f1ea7dde_5ba2_f7c5_1096_7a9ae1ac19eb
  3654ec69_2de1_b7c5_ef4b_7fe50f6a3b5d["StompSubscription()"]
  b713d3d2_6f91_536f_cb0a_b1071ad1f70d -->|method| 3654ec69_2de1_b7c5_ef4b_7fe50f6a3b5d
  d09e0dbc_997f_4b6c_b02d_cb961b11f164["String()"]
  b713d3d2_6f91_536f_cb0a_b1071ad1f70d -->|method| d09e0dbc_997f_4b6c_b02d_cb961b11f164
  7d987d08_557b_1be8_f429_1fefa393068b["Channel()"]
  b713d3d2_6f91_536f_cb0a_b1071ad1f70d -->|method| 7d987d08_557b_1be8_f429_1fefa393068b
  3d4d0310_c67f_2cfb_15a7_38afb0f81aed["equals()"]
  b713d3d2_6f91_536f_cb0a_b1071ad1f70d -->|method| 3d4d0310_c67f_2cfb_15a7_38afb0f81aed
  e1d29dd4_93e1_2410_3b88_d670dd71ae37["hashCode()"]
  b713d3d2_6f91_536f_cb0a_b1071ad1f70d -->|method| e1d29dd4_93e1_2410_3b88_d670dd71ae37

Relationship Graph

Source Code

example/src/main/java/io/netty/example/stomp/websocket/StompSubscription.java lines 21–75

public final class StompSubscription {

    private final String id;
    private final String destination;
    private final Channel channel;

    public StompSubscription(String id, String destination, Channel channel) {
        this.id = ObjectUtil.checkNotNull(id, "id");
        this.destination = ObjectUtil.checkNotNull(destination, "destination");
        this.channel = ObjectUtil.checkNotNull(channel, "channel");
    }

    public String id() {
        return id;
    }

    public String destination() {
        return destination;
    }

    public Channel channel() {
        return channel;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }

        StompSubscription that = (StompSubscription) obj;

        if (!id.equals(that.id)) {
            return false;
        }

        if (!destination.equals(that.destination)) {
            return false;
        }

        return channel.equals(that.channel);
    }

    @Override
    public int hashCode() {
        int result = id.hashCode();
        result = 31 * result + destination.hashCode();
        result = 31 * result + channel.hashCode();
        return result;
    }
}

Frequently Asked Questions

What is the StompSubscription class?
StompSubscription is a class in the netty codebase, defined in example/src/main/java/io/netty/example/stomp/websocket/StompSubscription.java.
Where is StompSubscription defined?
StompSubscription is defined in example/src/main/java/io/netty/example/stomp/websocket/StompSubscription.java at line 21.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free