| Constructor and Description |
|---|
PollableImpl(SelectableChannel channel,
PollerType... options) |
PollableImpl(Socket socket,
PollerType... options) |
| Modifier and Type | Method and Description |
|---|---|
SelectableChannel |
getChannel()
Get the SelectableChannel (if any) for this poll item.
|
EnumSet<PollerType> |
getOptions()
Get the options used for this poll item
|
Socket |
getSocket()
Get the socket (if any) for this poll item.
|
public PollableImpl(Socket socket, PollerType... options)
public PollableImpl(SelectableChannel channel, PollerType... options)
public Socket getSocket()
Pollablepublic SelectableChannel getChannel()
PollablegetChannel in interface Pollablepublic EnumSet<PollerType> getOptions()
PollablegetOptions in interface PollableCopyright © 2019. All rights reserved.