Class ProxyExtensions
- java.lang.Object
-
- org.apache.pulsar.proxy.extensions.ProxyExtensions
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ProxyExtensions extends java.lang.Object implements java.lang.AutoCloseableA collection of loaded extensions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ProxyExtensionextension(java.lang.String extension)Return the handler for the provided extension.voidinitialize(ProxyConfiguration conf)static ProxyExtensionsload(ProxyConfiguration conf)Load the extensions for the given extensions list.java.util.Map<java.lang.String,java.util.Map<java.net.InetSocketAddress,io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>>newChannelInitializers()voidstart(ProxyService service)
-
-
-
Method Detail
-
load
public static ProxyExtensions load(ProxyConfiguration conf) throws java.io.IOException
Load the extensions for the given extensions list.- Parameters:
conf- the pulsar broker service configuration- Returns:
- the collection of extensions
- Throws:
java.io.IOException
-
extension
public ProxyExtension extension(java.lang.String extension)
Return the handler for the provided extension.- Parameters:
extension- the extension to use- Returns:
- the extension to handle the provided extension
-
initialize
public void initialize(ProxyConfiguration conf) throws java.lang.Exception
- Throws:
java.lang.Exception
-
newChannelInitializers
public java.util.Map<java.lang.String,java.util.Map<java.net.InetSocketAddress,io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> newChannelInitializers()
-
start
public void start(ProxyService service)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-