public class DataReceivingLoop extends Object implements Runnable, DataReceiver
Constructor and Description |
---|
DataReceivingLoop(SharedSelector selector,
IRuntimeLifecycleBinder lifecycleBinder,
Config config) |
Modifier and Type | Method and Description |
---|---|
void |
activateChannel(SelectableChannel channel)
Activate selection for the provided channel.
|
void |
deactivateChannel(SelectableChannel channel)
De-activate selection for the provided channel.
|
void |
registerChannel(SelectableChannel channel,
ChannelHandlerContext context)
Register a channel.
|
void |
run() |
void |
shutdown() |
void |
unregisterChannel(SelectableChannel channel) |
@Inject public DataReceivingLoop(SharedSelector selector, IRuntimeLifecycleBinder lifecycleBinder, Config config)
public void registerChannel(SelectableChannel channel, ChannelHandlerContext context)
DataReceiver
registerChannel
in interface DataReceiver
channel
- Channel to be registeredcontext
- Context with callbacks for registration/selection/interest change events.public void unregisterChannel(SelectableChannel channel)
unregisterChannel
in interface DataReceiver
public void activateChannel(SelectableChannel channel)
DataReceiver
activateChannel
in interface DataReceiver
public void deactivateChannel(SelectableChannel channel)
DataReceiver
deactivateChannel
in interface DataReceiver
public void shutdown()
Copyright © 2016–2021. All rights reserved.