Spec-Zone.ru › OpenJDK 17

Класс AbstractNotificationHandler<T>

java.lang.Object
com.sun.nio.sctp.AbstractNotificationHandler<T>
Все реализованные интерфейсы:
NotificationHandler<T>
public class AbstractNotificationHandler<T> extends Object implements NotificationHandler<T>
Скелетный обработчик, который потребляет уведомления и продолжает работу.

Этот класс тривиально реализует методы handleNotification для возврата CONTINUE, чтобы все уведомления потреблялись, и канал продолжал попытки получения сообщения.

Он также предоставляет перегруженные версии методов handleNotification, по одному для каждого из требуемых поддерживаемых типов уведомлений: AssociationChangeNotification, PeerAddressChangeNotification, SendFailedNotification и ShutdownNotification. Соответствующий метод будет вызван при получении уведомления.

С момента:
1.7

Краткое описание конструкторов

AbstractNotificationHandler()
Модификатор Конструктор Описание
protected
Инициализирует новый экземпляр этого класса.

Краткое описание методов

Модификатор и тип Метод Описание
HandlerResult handleNotification(AssociationChangeNotification notification, T attachment)
Вызывается при получении AssociationChangeNotification от стека SCTP.
HandlerResult handleNotification(Notification notification, T attachment)
Вызывается при получении уведомления, специфичного для реализации, от стека SCTP.
HandlerResult handleNotification(PeerAddressChangeNotification notification, T attachment)
Вызывается при получении PeerAddressChangeNotification от стека SCTP.
HandlerResult handleNotification(SendFailedNotification notification, T attachment)
Вызывается при получении SendFailedNotification от стека SCTP.
HandlerResult handleNotification(ShutdownNotification notification, T attachment)
Вызывается при получении ShutdownNotification от стека SCTP.

Методы, объявленные в классе java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Подробное описание конструкторов

AbstractNotificationHandler

protected AbstractNotificationHandler()
Инициализирует новый экземпляр этого класса.

Подробное описание методов

handleNotification

public HandlerResult handleNotification(Notification notification, T attachment)
Вызывается при получении уведомления, специфичного для реализации, от стека SCTP.
Указано в:
handleNotification в интерфейсе NotificationHandler<T>
Параметры:
notification - Уведомление
attachment - Объект, прикрепленный к receive операции при ее инициировании.
Возвращает:
Результат обработки

handleNotification

public HandlerResult handleNotification(AssociationChangeNotification notification, T attachment)
Вызывается при получении AssociationChangeNotification от стека SCTP.
Параметры:
notification - Уведомление
attachment - Объект, прикрепленный к receive операции при ее инициировании.
Возвращает:
Результат обработки

handleNotification

public HandlerResult handleNotification(PeerAddressChangeNotification notification, T attachment)
Вызывается при получении PeerAddressChangeNotification от стека SCTP.
Параметры:
notification - Уведомление
attachment - Объект, прикрепленный к receive операции при ее инициировании.
Возвращает:
Результат обработки

handleNotification

public HandlerResult handleNotification(SendFailedNotification notification, T attachment)
Вызывается при получении SendFailedNotification от стека SCTP.
Параметры:
notification - Уведомление
attachment - Объект, прикрепленный к receive операции при ее инициировании.
Возвращает:
Результат обработки

handleNotification

public HandlerResult handleNotification(ShutdownNotification notification, T attachment)
Вызывается при получении ShutdownNotification от стека SCTP.
Параметры:
notification - Уведомление
attachment - Объект, прикрепленный к receive операции при ее инициировании.
Возвращает:
Результат обработки

© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/jdk.sctp/com/sun/nio/sctp/AbstractNotificationHandler.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API