public class NotificationNode extends Node
Node
that notifies the client about every Stream
that
passes through it.
Register NotificationNode.NotificationListener
s that care about these events.Modifier and Type | Class and Description |
---|---|
static interface |
NotificationNode.NotificationListener
The listener that's notified when a
Stream passes through this
node. |
Node.Cardinality
Constructor and Description |
---|
NotificationNode() |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationResultListener(NotificationNode.NotificationListener listener)
Adds a listener to be informed about a
Stream passing through
this node. |
String |
getWorkerClassName()
Return the node's associated
NodeWorker full qualified class's
name. |
protected void |
initialize(CommunicationSide side) |
void |
removeNotificationResultListener(NotificationNode.NotificationListener listener)
Removes a
NotificationNode.NotificationListener for the events. |
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, prependPredecessor, remove, validateConfiguration
protected void initialize(CommunicationSide side)
initialize
in class Node
public void addNotificationResultListener(NotificationNode.NotificationListener listener)
Stream
passing through
this node.listener
- The listener to addpublic void removeNotificationResultListener(NotificationNode.NotificationListener listener)
NotificationNode.NotificationListener
for the events.listener
- The listener to removepublic String getWorkerClassName()
Node
Return the node's associated
NodeWorker
full qualified class's
name. By default, the worker class name is
This behavior can be overridden in concrete subclasses.
getWorkerClassName
in class Node
Copyright © 2017 levigo holding gmbh. All rights reserved.