Class ProxyExtensions

java.lang.Object
org.apache.pulsar.proxy.extensions.ProxyExtensions
All Implemented Interfaces:
AutoCloseable

public class ProxyExtensions extends Object implements AutoCloseable
A collection of loaded extensions.
  • Method Details

    • load

      public static ProxyExtensions load(ProxyConfiguration conf) throws IOException
      Load the extensions for the given extensions list.
      Parameters:
      conf - the pulsar broker service configuration
      Returns:
      the collection of extensions
      Throws:
      IOException
    • extension

      public ProxyExtension extension(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 Exception
      Throws:
      Exception
    • newChannelInitializers

      public Map<String,Map<InetSocketAddress,io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> newChannelInitializers()
    • start

      public void start(ProxyService service)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable