Class ProxyExtensions
java.lang.Object
org.apache.pulsar.proxy.extensions.ProxyExtensions
- All Implemented Interfaces:
AutoCloseable
A collection of loaded extensions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Return the handler for the provided extension.voidinitialize(ProxyConfiguration conf) static ProxyExtensionsload(ProxyConfiguration conf) Load the extensions for the given extensions list.Map<String,Map<InetSocketAddress, io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> voidstart(ProxyService service)
-
Method Details
-
load
Load the extensions for the given extensions list.- Parameters:
conf- the pulsar broker service configuration- Returns:
- the collection of extensions
- Throws:
IOException
-
extension
Return the handler for the provided extension.- Parameters:
extension- the extension to use- Returns:
- the extension to handle the provided extension
-
initialize
- Throws:
Exception
-
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
-