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)
connection
- The connectionadditional
- Any additional resources to close once the connection has been closedCopyright © 2017 JBoss by Red Hat. All rights reserved.