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
Specialized
HttpEntrypointConnector for ApiType.MESSAGE-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected io.reactivex.rxjava3.processors.BehaviorProcessor<Message>Fields inherited from class io.gravitee.common.service.AbstractService
applicationContextFields inherited from class io.gravitee.common.component.AbstractLifecycleComponent
lifecycle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitiates a connection drain process.voidEmit a stop message to force reconnection.abstract QosRequirementReturns theApiTypesupported by this endpoint.Methods inherited from class io.gravitee.common.service.AbstractService
doStart, doStop, getOrder, name, setApplicationContextMethods inherited from class io.gravitee.common.component.AbstractLifecycleComponent
lifecycleState, preStop, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.gravitee.gateway.reactive.api.connector.entrypoint.BaseEntrypointConnector
matchCriteriaCount, supportedListenerTypeMethods inherited from interface io.gravitee.gateway.reactive.api.connector.Connector
id, supportedModesMethods inherited from interface io.gravitee.gateway.reactive.api.connector.entrypoint.EntrypointConnector
handleRequest, handleRequest, handleResponse, handleResponse, matches, matchesMethods inherited from interface io.gravitee.common.component.LifecycleComponent
lifecycleState, postStart, postStop, preStart, preStop, start, stop
-
Field Details
-
STOP_MESSAGE_ID
- See Also:
-
STOP_MESSAGE_CONTENT
- See Also:
-
stopHook
-
-
Constructor Details
-
HttpEntrypointAsyncConnector
public HttpEntrypointAsyncConnector()
-
-
Method Details
-
supportedApi
Description copied from interface:ConnectorReturns theApiTypesupported by this endpoint. It will be used to filter available connector when creating a new API- Specified by:
supportedApiin interfaceConnector- Returns:
ApiTypesupported by this connector.
-
qosRequirement
- Returns:
QosRequirementdefined 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
-