public interface PortAutoCloseable
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Closes the channel so that no more messages could be sent to it.
|
default boolean |
isClosed()
Tests whether the channel has been closed and no more messages await in the channel.
|
default void close()
close in interface java.lang.AutoCloseabledefault boolean isClosed()
true all
future calls to receive are guaranteed to return null, and calls to receive on a primitive channel
will throw a EOFException.true if the channels has been closed and no more messages will be received; false otherwise.