Class HttpEntrypointAsyncConnector

java.lang.Object
io.gravitee.common.component.AbstractLifecycleComponent<T>
io.gravitee.common.service.AbstractService<Connector>
io.gravitee.gateway.reactive.api.connector.entrypoint.async.HttpEntrypointAsyncConnector
All Implemented Interfaces:
io.gravitee.common.component.LifecycleComponent<Connector>, Connector, BaseEntrypointConnector<HttpExecutionContext>, EntrypointConnector, HttpEntrypointConnector, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
EntrypointAsyncConnector

public abstract class HttpEntrypointAsyncConnector extends io.gravitee.common.service.AbstractService<Connector> implements HttpEntrypointConnector, EntrypointConnector
  • Field Details

  • Constructor Details

    • HttpEntrypointAsyncConnector

      public HttpEntrypointAsyncConnector()
  • Method Details

    • supportedApi

      public ApiType supportedApi()
      Description copied from interface: Connector
      Returns the ApiType supported by this endpoint. It will be used to filter available connector when creating a new API
      Specified by:
      supportedApi in interface Connector
      Returns:
      ApiType supported by this connector.
    • qosRequirement

      public abstract QosRequirement qosRequirement()
      Returns:
      QosRequirement defined by this entrypoint.
    • drainConnections

      public void drainConnections()
      Initiates a connection drain process.

      Draining connections means gracefully stopping message delivery so that clients are encouraged to close the current connection and reconnect.

      This method can be overridden in case the behavior need to be adapted (ex: Webhook).

    • emitStopMessage

      public void emitStopMessage()
      Emit a stop message to force reconnection.
    • applyStopHook

      protected io.reactivex.rxjava3.core.FlowableTransformer<Message,Message> applyStopHook()