public class SpinningEventLoopGroup extends Object implements EventLoopGroup
EventLoopGroup
that uses (busy) spinning on the SocketChannels to see if there is something
to read or write.
Currently there are 2 threads spinning:
Constructor and Description |
---|
SpinningEventLoopGroup(LoggingService loggingService,
MetricsRegistry metricsRegistry,
ChannelErrorHandler errorHandler,
ChannelInitializer channelInitializer,
String hzName) |
Modifier and Type | Method and Description |
---|---|
void |
register(Channel channel)
Registers a channel at this
EventLoopGroup . |
void |
shutdown()
Shuts down this EventLoopGroup.
|
void |
start()
Starts this EventLoopGroup.
|
public SpinningEventLoopGroup(LoggingService loggingService, MetricsRegistry metricsRegistry, ChannelErrorHandler errorHandler, ChannelInitializer channelInitializer, String hzName)
public void register(Channel channel)
EventLoopGroup
EventLoopGroup
.
Every Channel should be registered at at most 1 EventLoopGroup and it is very unlikely that during the lifespan of the
Channel, it will change its EventLoopGroup.register
in interface EventLoopGroup
channel
- the channel to register.public void start()
EventLoopGroup
start
in interface EventLoopGroup
public void shutdown()
EventLoopGroup
shutdown
in interface EventLoopGroup
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.