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()
Pollable
public SelectableChannel getChannel()
Pollable
getChannel
in interface Pollable
public EnumSet<PollerType> getOptions()
Pollable
getOptions
in interface Pollable
Copyright © 2019. All rights reserved.