public abstract static class RecreateOnResetOperatorCoordinator.Provider extends Object implements OperatorCoordinator.Provider
Constructor and Description |
---|
Provider(OperatorID operatorID) |
Modifier and Type | Method and Description |
---|---|
OperatorCoordinator |
create(OperatorCoordinator.Context context)
Creates the
OperatorCoordinator , using the given context. |
protected OperatorCoordinator |
create(OperatorCoordinator.Context context,
long closingTimeoutMs) |
protected abstract OperatorCoordinator |
getCoordinator(OperatorCoordinator.Context context) |
OperatorID |
getOperatorId()
Gets the ID of the operator to which the coordinator belongs.
|
public Provider(OperatorID operatorID)
public OperatorID getOperatorId()
OperatorCoordinator.Provider
getOperatorId
in interface OperatorCoordinator.Provider
public OperatorCoordinator create(OperatorCoordinator.Context context) throws Exception
OperatorCoordinator.Provider
OperatorCoordinator
, using the given context.create
in interface OperatorCoordinator.Provider
Exception
@VisibleForTesting protected OperatorCoordinator create(OperatorCoordinator.Context context, long closingTimeoutMs) throws Exception
Exception
protected abstract OperatorCoordinator getCoordinator(OperatorCoordinator.Context context) throws Exception
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.