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