Class AsyncApiControlPlaneImpl
java.lang.Object
org.mockserver.async.controlplane.AsyncApiControlPlaneImpl
- All Implemented Interfaces:
org.mockserver.async.AsyncApiControlPlane
public class AsyncApiControlPlaneImpl
extends Object
implements org.mockserver.async.AsyncApiControlPlane
Implementation of
AsyncApiControlPlane that lives in the mockserver-async
module and is registered into the core's AsyncApiControlPlaneRegistry
at server startup.
Handles:
- Loading AsyncAPI specs via the REST control-plane
- Creating publishers and subscribers for each channel
- Schema validation of generated and consumed messages
- Returning status including recorded messages
- Resetting all state on server reset
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AsyncApiControlPlaneImpl
public AsyncApiControlPlaneImpl()
-
-
Method Details
-
registerIfAvailable
public static void registerIfAvailable()Register this implementation into the core registry. Call at server startup (e.g. from MockServerLifeCycle or Main). -
load
- Specified by:
loadin interfaceorg.mockserver.async.AsyncApiControlPlane
-
status
public com.fasterxml.jackson.databind.JsonNode status()- Specified by:
statusin interfaceorg.mockserver.async.AsyncApiControlPlane
-
verify
- Specified by:
verifyin interfaceorg.mockserver.async.AsyncApiControlPlane
-
reset
public void reset()- Specified by:
resetin interfaceorg.mockserver.async.AsyncApiControlPlane
-