Tristan Tarrant created ISPN-12605:
--------------------------------------
Summary: REST event listeners
Key: ISPN-12605
URL:
https://issues.redhat.com/browse/ISPN-12605
Project: Infinispan
Issue Type: Feature Request
Components: Listeners, REST, Server
Reporter: Tristan Tarrant
Add event listeners to the REST endpoint.
These should use HTTP Server-Sent-Events
[
https://html.spec.whatwg.org/multipage/server-sent-events.html|https://ht...]
For cache listeners:
{{GET
/v2/caches/{cacheName}?action=listen[&includeCurrentState=true|false][&filterFactoryName=...][&converterFactoryName=...][&includeMetadata=true|false]
}}
This will result in a response with content-type text/event-stream followed by a stream of
cache events.
Each event follows the following structure:
{noformat}
event: [created|modified|removed|expired]
data: [json representantion of event]
{noformat}
the data field will contain a JSON representation of the event:
{code:json}
{
key: {},
value: {},
metadata: {}
}
{code}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)