public class ComponentClosingUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<Throwable> |
closeWithTimeout(String componentName,
Runnable closingSequence,
long closeTimeoutMs)
Close a component with a timeout.
|
static Optional<Throwable> |
closeWithTimeout(String componentName,
org.apache.flink.util.function.ThrowingRunnable<Exception> closingSequence,
long closeTimeoutMs)
Close a component with a timeout.
|
public static Optional<Throwable> closeWithTimeout(String componentName, org.apache.flink.util.function.ThrowingRunnable<Exception> closingSequence, long closeTimeoutMs)
componentName - the name of the component.closingSequence - the closing logic which is a callable that can throw exceptions.closeTimeoutMs - the timeout in milliseconds to waif for the component to close.public static Optional<Throwable> closeWithTimeout(String componentName, Runnable closingSequence, long closeTimeoutMs)
componentName - the name of the component.closingSequence - the closing logic.closeTimeoutMs - the timeout in milliseconds to waif for the component to close.Copyright © 2019–2022 The Apache Software Foundation. All rights reserved.