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.ProvidergetOperatorId in interface OperatorCoordinator.Providerpublic OperatorCoordinator create(OperatorCoordinator.Context context) throws Exception
OperatorCoordinator.ProviderOperatorCoordinator, using the given context.create in interface OperatorCoordinator.ProviderException@VisibleForTesting protected OperatorCoordinator create(OperatorCoordinator.Context context, long closingTimeoutMs) throws Exception
Exceptionprotected abstract OperatorCoordinator getCoordinator(OperatorCoordinator.Context context) throws Exception
ExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.