Class ProtocolHandlers
java.lang.Object
org.apache.pulsar.broker.protocol.ProtocolHandlers
- All Implemented Interfaces:
AutoCloseable
A collection of loaded handlers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidinitialize(org.apache.pulsar.broker.ServiceConfiguration conf) static ProtocolHandlersload(org.apache.pulsar.broker.ServiceConfiguration conf) Load the protocol handlers for the given protocol list.Map<String,Map<InetSocketAddress, io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> Return the handler for the provided protocol.voidstart(BrokerService service)
-
Method Details
-
load
public static ProtocolHandlers load(org.apache.pulsar.broker.ServiceConfiguration conf) throws IOException Load the protocol handlers for the given protocol list.- Parameters:
conf- the pulsar broker service configuration- Returns:
- the collection of protocol handlers
- Throws:
IOException
-
protocol
Return the handler for the provided protocol.- Parameters:
protocol- the protocol to use- Returns:
- the protocol handler to handle the provided protocol
-
initialize
- Throws:
Exception
-
getProtocolDataToAdvertise
-
newChannelInitializers
public Map<String,Map<InetSocketAddress, newChannelInitializers()io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> -
start
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-