T
- the concrete type of Notification
that an implementation can handle.public interface NotificationListener<T extends Notification>
Notification
is fired
.Modifier and Type | Method and Description |
---|---|
default boolean |
isBlocking()
Allows the notification handler to perform otimizations on the handling of the
Notification when
fired . |
void |
onNotification(T notification)
Handles the
fired Notification . |
default boolean isBlocking()
Notification
when
fired
.void onNotification(T notification)
fired
Notification
.notification
- the Notification
to handle.Copyright © 2018. All rights reserved.