Class CacheEntryStreamProcessor

java.lang.Object
org.infinispan.rest.stream.CacheChunkedStream<CacheEntry<?,?>>
org.infinispan.rest.stream.CacheEntryStreamProcessor

public class CacheEntryStreamProcessor extends CacheChunkedStream<CacheEntry<?,?>>
A CacheChunkedStream that reads Map.Entry and produces a JSON output. For example:


 [
   {"key":1,"value":"value","timeToLiveSeconds": -1, "maxIdleTimeSeconds": -1, "created": -1, "lastUsed": -1, "expireTime": -1},
   {"key":2,"value":"value2","timeToLiveSeconds": -1, "maxIdleTimeSeconds": -1, "created": -1, "lastUsed": -1, "expireTime": -1}
 ]
 
Since:
12.0
  • Constructor Details

    • CacheEntryStreamProcessor

      public CacheEntryStreamProcessor(org.reactivestreams.Publisher<CacheEntry<?,?>> publisher, boolean keysAreJson, boolean valuesAreJson, boolean includeMetadata)
  • Method Details