public final class PayloadWriterUtils
extends Object
PayloadWriter.| Modifier and Type | Method and Description |
|---|---|
static <T> void |
safeClose(PayloadWriter<T> writer,
Throwable cause)
Invokes
PayloadWriter.close(Throwable) ignoring an occurred exception if any. |
public static <T> void safeClose(PayloadWriter<T> writer,
Throwable cause)
PayloadWriter.close(Throwable) ignoring an occurred exception if any.T - The type of PayloadWriter.writer - The PayloadWriter to close.cause - The cause to pass to PayloadWriter.close(Throwable).