Class A2aPushNotificationRegistry
java.lang.Object
com.xebialabs.xlrelease.a2a.server.A2aPushNotificationRegistry
Push-notification configs external callers registered for release-backed A2A tasks: one config
per task (the release id), replaced on re-registration, dropped when the release reaches a
terminal state or the map outgrows its bound.
In-memory on purpose, same reasoning as the boot-scoped callback secret: a webhook
registration lost to a restart merely returns the caller to polling GetTask — the
documented, always-correct fallback — and a caller can re-register at any time. Latency, never
correctness.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne registered webhook. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyReleaseId(String releaseId) Registers (or replaces) the webhook for a release-backed task; returns the config id.void
-
Constructor Details
-
A2aPushNotificationRegistry
public A2aPushNotificationRegistry()
-
-
Method Details
-
register
public A2aPushNotificationRegistry.StoredConfig register(String releaseId, String configId, String url, String token) Registers (or replaces) the webhook for a release-backed task; returns the config id. -
byReleaseId
-
remove
-