Package septogeddon.pluginquery
Class QueryMessengerImpl
java.lang.Object
septogeddon.pluginquery.QueryMessengerImpl
- All Implemented Interfaces:
QueryMessenger
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.EventLoopGroupNetty 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, waitMethods inherited from interface septogeddon.pluginquery.api.QueryMessenger
broadcastQuery, broadcastQuery
-
Field Details
-
connections
-
-
Constructor Details
-
QueryMessengerImpl
public QueryMessengerImpl()
-
-
Method Details
-
newConnection
Description copied from interface:QueryMessengerPrepare new connection using specified address- Specified by:
newConnectionin interfaceQueryMessenger- Parameters:
address-- Returns:
-
injectConnection
Description copied from interface:QueryMessengerInject served channel to handle query protocols- Specified by:
injectConnectionin interfaceQueryMessenger- Parameters:
channel-- Returns:
-
getActiveConnections
Description copied from interface:QueryMessengerGet all connections (inactive connections aren't included here, they're all goes GC'ed when you stop referring to them)- Specified by:
getActiveConnectionsin interfaceQueryMessenger- Returns:
-
getMetadata
Description copied from interface:QueryMessengerGet Messenger metadata- Specified by:
getMetadatain interfaceQueryMessenger- Returns:
-
getEventBus
Description copied from interface:QueryMessengerEvent Manager that listen to all connections- Specified by:
getEventBusin interfaceQueryMessenger- Returns:
-
getPipeline
Description copied from interface:QueryMessengerPipeline for all connections- Specified by:
getPipelinein interfaceQueryMessenger- Returns:
-
getEventLoopGroup
public io.netty.channel.EventLoopGroup getEventLoopGroup()Description copied from interface:QueryMessengerNetty Event Loop Group- Specified by:
getEventLoopGroupin interfaceQueryMessenger- Returns:
-
getChannelClass
Description copied from interface:QueryMessengerNetty Channel Class- Specified by:
getChannelClassin interfaceQueryMessenger- Returns:
-