Home / Class/ SctpNotificationHandler Class — netty Architecture

SctpNotificationHandler Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  8b68fe9c_37fe_d313_9bcd_b1b82c15e5d6["SctpNotificationHandler"]
  fa60acd3_d306_9e61_7524_1186f05cf897["SctpNotificationHandler.java"]
  8b68fe9c_37fe_d313_9bcd_b1b82c15e5d6 -->|defined in| fa60acd3_d306_9e61_7524_1186f05cf897
  8a5cf31b_baaf_fc0c_8a08_e4240990062b["SctpNotificationHandler()"]
  8b68fe9c_37fe_d313_9bcd_b1b82c15e5d6 -->|method| 8a5cf31b_baaf_fc0c_8a08_e4240990062b
  c714e1b4_233a_569b_8004_b75611733b3f["HandlerResult()"]
  8b68fe9c_37fe_d313_9bcd_b1b82c15e5d6 -->|method| c714e1b4_233a_569b_8004_b75611733b3f
  6970c3aa_e215_71da_dcd3_d698d3d9f190["fireEvent()"]
  8b68fe9c_37fe_d313_9bcd_b1b82c15e5d6 -->|method| 6970c3aa_e215_71da_dcd3_d698d3d9f190

Relationship Graph

Source Code

transport-sctp/src/main/java/io/netty/channel/sctp/SctpNotificationHandler.java lines 33–69

public final class SctpNotificationHandler extends AbstractNotificationHandler<Object> {

    private final SctpChannel sctpChannel;

    public SctpNotificationHandler(SctpChannel sctpChannel) {
        this.sctpChannel = ObjectUtil.checkNotNull(sctpChannel, "sctpChannel");
    }

    @Override
    public HandlerResult handleNotification(AssociationChangeNotification notification, Object o) {
        fireEvent(notification);
        return HandlerResult.CONTINUE;
    }

    @Override
    public HandlerResult handleNotification(PeerAddressChangeNotification notification, Object o) {
        fireEvent(notification);
        return HandlerResult.CONTINUE;
    }

    @Override
    public HandlerResult handleNotification(SendFailedNotification notification, Object o) {
        fireEvent(notification);
        return HandlerResult.CONTINUE;
    }

    @Override
    public HandlerResult handleNotification(ShutdownNotification notification, Object o) {
        fireEvent(notification);
        sctpChannel.close();
        return HandlerResult.RETURN;
    }

    private void fireEvent(Notification notification) {
        sctpChannel.pipeline().fireUserEventTriggered(notification);
    }
}

Frequently Asked Questions

What is the SctpNotificationHandler class?
SctpNotificationHandler is a class in the netty codebase, defined in transport-sctp/src/main/java/io/netty/channel/sctp/SctpNotificationHandler.java.
Where is SctpNotificationHandler defined?
SctpNotificationHandler is defined in transport-sctp/src/main/java/io/netty/channel/sctp/SctpNotificationHandler.java at line 33.

Analyze Your Own Codebase

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

Try Supermodel Free