Class OperatorEventDispatcherImpl
- java.lang.Object
-
- org.apache.flink.streaming.runtime.tasks.OperatorEventDispatcherImpl
-
- All Implemented Interfaces:
OperatorEventDispatcher
@Internal public final class OperatorEventDispatcherImpl extends Object implements OperatorEventDispatcher
An implementation of theOperatorEventDispatcher.This class is intended for single threaded use from the stream task mailbox.
-
-
Constructor Summary
Constructors Constructor Description OperatorEventDispatcherImpl(ClassLoader classLoader, TaskOperatorEventGateway toCoordinator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorEventGatewaygetOperatorEventGateway(OperatorID operatorId)Gets the gateway through which events can be passed to the OperatorCoordinator for the operator identified by the given OperatorID.voidregisterEventHandler(OperatorID operator, OperatorEventHandler handler)Register a listener that is notified every time an OperatorEvent is sent from the OperatorCoordinator (of the operator with the given OperatorID) to this subtask.
-
-
-
Constructor Detail
-
OperatorEventDispatcherImpl
public OperatorEventDispatcherImpl(ClassLoader classLoader, TaskOperatorEventGateway toCoordinator)
-
-
Method Detail
-
registerEventHandler
public void registerEventHandler(OperatorID operator, OperatorEventHandler handler)
Description copied from interface:OperatorEventDispatcherRegister a listener that is notified every time an OperatorEvent is sent from the OperatorCoordinator (of the operator with the given OperatorID) to this subtask.- Specified by:
registerEventHandlerin interfaceOperatorEventDispatcher
-
getOperatorEventGateway
public OperatorEventGateway getOperatorEventGateway(OperatorID operatorId)
Description copied from interface:OperatorEventDispatcherGets the gateway through which events can be passed to the OperatorCoordinator for the operator identified by the given OperatorID.- Specified by:
getOperatorEventGatewayin interfaceOperatorEventDispatcher
-
-