@Contract(threading=STATELESS) public class NoopCacheEntrySerializer extends Object implements HttpCacheEntrySerializer<HttpCacheStorageEntry>
HttpCacheEntrySerializer
that uses HttpCacheStorageEntry
as its cache content representation.Modifier and Type | Field and Description |
---|---|
static NoopCacheEntrySerializer |
INSTANCE
Default instance of
NoopCacheEntrySerializer . |
Constructor and Description |
---|
NoopCacheEntrySerializer() |
Modifier and Type | Method and Description |
---|---|
HttpCacheStorageEntry |
deserialize(HttpCacheStorageEntry cacheEntry)
Deserializes a cache entry from its serialized representation.
|
HttpCacheStorageEntry |
serialize(HttpCacheStorageEntry cacheEntry)
Serializes the given entry.
|
public static final NoopCacheEntrySerializer INSTANCE
NoopCacheEntrySerializer
.public HttpCacheStorageEntry serialize(HttpCacheStorageEntry cacheEntry) throws ResourceIOException
HttpCacheEntrySerializer
serialize
in interface HttpCacheEntrySerializer<HttpCacheStorageEntry>
cacheEntry
- cache entryResourceIOException
public HttpCacheStorageEntry deserialize(HttpCacheStorageEntry cacheEntry) throws ResourceIOException
HttpCacheEntrySerializer
deserialize
in interface HttpCacheEntrySerializer<HttpCacheStorageEntry>
cacheEntry
- serialized representation of the cache entryResourceIOException
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.