Package org.infinispan.rest.stream
Class CacheEntryStreamProcessor
java.lang.Object
org.infinispan.rest.stream.CacheChunkedStream<CacheEntry<?,?>>
org.infinispan.rest.stream.CacheEntryStreamProcessor
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
-
Field Summary
Fields inherited from class org.infinispan.rest.stream.CacheChunkedStream
logger, publisher
-
Constructor Summary
ConstructorDescriptionCacheEntryStreamProcessor
(org.reactivestreams.Publisher<CacheEntry<?, ?>> publisher, boolean keysAreJson, boolean valuesAreJson, boolean includeMetadata) -
Method Summary
Methods inherited from class org.infinispan.rest.stream.CacheChunkedStream
readContentAsBytes
-
Constructor Details
-
CacheEntryStreamProcessor
public CacheEntryStreamProcessor(org.reactivestreams.Publisher<CacheEntry<?, ?>> publisher, boolean keysAreJson, boolean valuesAreJson, boolean includeMetadata)
-
-
Method Details
-
subscribe
public void subscribe(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
subscribe
in classCacheChunkedStream<CacheEntry<?,
?>>
-