public class ConnectionUtils extends Object
|Modifier and Type||Method and Description|
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 connection
additional- Any additional resources to close once the connection has been closed
Copyright © 2021 JBoss by Red Hat. All rights reserved.