Module jdk.sctp

Class AbstractNotificationHandler<T>

    • Constructor Detail

      • AbstractNotificationHandler

        protected AbstractNotificationHandler​()
        Initializes a new instance of this class.
    • Method Detail

      • handleNotification

        public HandlerResult handleNotification​(Notification notification,
                                                T attachment)
        Invoked when an implementation specific notification is received from the SCTP stack.
        Specified by:
        handleNotification in interface NotificationHandler<T>
        Parameters:
        notification - The notification
        attachment - The object attached to the receive operation when it was initiated.
        Returns:
        The handler result
      • handleNotification

        public HandlerResult handleNotification​(SendFailedNotification notification,
                                                T attachment)
        Invoked when an SendFailedNotification is received from the SCTP stack.
        Parameters:
        notification - The notification
        attachment - The object attached to the receive operation when it was initiated.
        Returns:
        The handler result
      • handleNotification

        public HandlerResult handleNotification​(ShutdownNotification notification,
                                                T attachment)
        Invoked when an ShutdownNotification is received from the SCTP stack.
        Parameters:
        notification - The notification
        attachment - The object attached to the receive operation when it was initiated.
        Returns:
        The handler result