Class AbstractEmbeddedServerService<T>

java.lang.Object
com.alipay.sofa.ark.spi.web.AbstractEmbeddedServerService<T>
All Implemented Interfaces:
EmbeddedServerService<T>, Iterable<T>

public abstract class AbstractEmbeddedServerService<T> extends Object implements EmbeddedServerService<T>
  • Constructor Details

    • AbstractEmbeddedServerService

      public AbstractEmbeddedServerService()
  • Method Details

    • getEmbedServer

      public T getEmbedServer(int port)
      Description copied from interface: EmbeddedServerService
      get embed tomcat with port.
      Specified by:
      getEmbedServer in interface EmbeddedServerService<T>
      Returns:
    • putEmbedServer

      public boolean putEmbedServer(int port, T container)
      Description copied from interface: EmbeddedServerService
      put embed tomcat with port. Once web container instance (e.g. Tomcat, Netty) set to this EmbeddedServerService, it is usually can not be modified!
      Specified by:
      putEmbedServer in interface EmbeddedServerService<T>
      Parameters:
      port - server port
      container - server container
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>