public class ProtocolHandlers extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<String,String> |
getProtocolDataToAdvertise() |
void |
initialize(ServiceConfiguration conf) |
static ProtocolHandlers |
load(ServiceConfiguration conf)
Load the protocol handlers for the given protocol list.
|
Map<String,Map<InetSocketAddress,io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> |
newChannelInitializers() |
ProtocolHandler |
protocol(String protocol)
Return the handler for the provided protocol.
|
void |
start(BrokerService service) |
public static ProtocolHandlers load(ServiceConfiguration conf) throws IOException
conf - the pulsar broker service configurationIOExceptionpublic ProtocolHandler protocol(String protocol)
protocol - the protocol to usepublic void initialize(ServiceConfiguration conf) throws Exception
Exceptionpublic Map<String,Map<InetSocketAddress,io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> newChannelInitializers()
public void start(BrokerService service)
public void close()
close in interface AutoCloseableCopyright © 2017–2022 Apache Software Foundation. All rights reserved.