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)
EventLoopGroupEventLoopGroup.
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 EventLoopGroupchannel - the channel to register.public void start()
EventLoopGroupstart in interface EventLoopGrouppublic void shutdown()
EventLoopGroupshutdown in interface EventLoopGroupCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.