public class ConnectionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void | cleanClose(org.xnio.StreamConnection connection, Closeable... additional) Cleanly close a connection, by shutting down and flushing writes and then draining reads. |
public static void cleanClose(org.xnio.StreamConnection connection, Closeable... additional)
If this fails the connection is forcibly closed.
connection
- The connectionadditional
- Any additional resources to close once the connection has been closedCopyright © 2020 JBoss by Red Hat. All rights reserved.