public static class PortManager.PortRef
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
PortManager.PortRef.CloseOption
Options that may be used with
close(Set). |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this
PortRef. |
void |
close(java.util.Set<PortManager.PortRef.CloseOption> options)
Closes this
PortRef using the options provided. |
boolean |
isClosed()
Returns whether or not this
PortRef is closed. |
int |
port()
Gets the reserved port number.
|
public int port()
public boolean isClosed()
PortRef is closed.true if this PortRef has been closed; false otherwisepublic void close()
PortRef.close in interface java.lang.AutoCloseablepublic void close(java.util.Set<PortManager.PortRef.CloseOption> options)
PortRef using the options provided.options - the set of PortManager.PortRef.CloseOptions to apply to this close call; may be empty but not nullCopyright © 2022. All rights reserved.