Package septogeddon.pluginquery
Class QueryMessengerImpl
java.lang.Object
septogeddon.pluginquery.QueryMessengerImpl
- All Implemented Interfaces:
QueryMessenger
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection
<? extends QueryConnection> Get all connections (inactive connections aren't included here, they're all goes GC'ed when you stop referring to them)Class
<? extends io.netty.channel.Channel> Netty Channel ClassEvent Manager that listen to all connectionsio.netty.channel.EventLoopGroup
Netty Event Loop GroupGet Messenger metadataPipeline for all connectionsinjectConnection
(io.netty.channel.Channel channel) Inject served channel to handle query protocolsnewConnection
(SocketAddress address) Prepare new connection using specified addressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface septogeddon.pluginquery.api.QueryMessenger
broadcastQuery, broadcastQuery
-
Field Details
-
connections
-
-
Constructor Details
-
QueryMessengerImpl
public QueryMessengerImpl()
-
-
Method Details
-
newConnection
Description copied from interface:QueryMessenger
Prepare new connection using specified address- Specified by:
newConnection
in interfaceQueryMessenger
- Parameters:
address
-- Returns:
-
injectConnection
Description copied from interface:QueryMessenger
Inject served channel to handle query protocols- Specified by:
injectConnection
in interfaceQueryMessenger
- Parameters:
channel
-- Returns:
-
getActiveConnections
Description copied from interface:QueryMessenger
Get all connections (inactive connections aren't included here, they're all goes GC'ed when you stop referring to them)- Specified by:
getActiveConnections
in interfaceQueryMessenger
- Returns:
-
getMetadata
Description copied from interface:QueryMessenger
Get Messenger metadata- Specified by:
getMetadata
in interfaceQueryMessenger
- Returns:
-
getEventBus
Description copied from interface:QueryMessenger
Event Manager that listen to all connections- Specified by:
getEventBus
in interfaceQueryMessenger
- Returns:
-
getPipeline
Description copied from interface:QueryMessenger
Pipeline for all connections- Specified by:
getPipeline
in interfaceQueryMessenger
- Returns:
-
getEventLoopGroup
public io.netty.channel.EventLoopGroup getEventLoopGroup()Description copied from interface:QueryMessenger
Netty Event Loop Group- Specified by:
getEventLoopGroup
in interfaceQueryMessenger
- Returns:
-
getChannelClass
Description copied from interface:QueryMessenger
Netty Channel Class- Specified by:
getChannelClass
in interfaceQueryMessenger
- Returns:
-