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)
If this fails the connection is forcibly closed.
connection
- The connectionadditional
- Any additional resources to close once the connection has been closedCopyright © 2021 JBoss by Red Hat. All rights reserved.