Class ProxyExtensions

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ProxyExtensions
    extends java.lang.Object
    implements java.lang.AutoCloseable
    A collection of loaded extensions.
    • 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()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable