| Package | Description |
|---|---|
| org.openapitools.codegen.utils |
| Modifier and Type | Method and Description |
|---|---|
JsonCache.Root |
JsonCache.Factory.create()
Returns a new cache root instance.
|
JsonCache.Root |
JsonCache.Root.flush(File file)
If the cache is dirty, saves the object graph in JSON format to the specified file.
|
JsonCache.Root |
JsonCache.Root.flush(OutputStream out)
If the cache is dirty, saves the object graph in JSON format to the specified stream.
|
JsonCache.Root |
JsonCache.Root.flushOnShutdown(File file)
Makes a best-effort attempt to ensure that the cache gets flushed to a disk file if dirty on shutdown.
|
JsonCache.Root |
JsonCache.Root.flushOnShutdown(OutputStream out)
Makes a best-effort attempt to ensure that the cache gets flushed to an output stream if dirty on shutdown.
|
JsonCache.Root |
JsonCache.Factory.get(String key)
Returns the singleton cache root instance for the specified key.
|
JsonCache.Root |
JsonCache.Root.load(File file)
Loads the cache from the specified file.
|
JsonCache.Root |
JsonCache.Root.load(InputStream in)
Loads the cache from the specified stream.
|
JsonCache.Root |
JsonCache.Root.mapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
Sets the mapper to use for JSON-object marshalling and serialisation operations.
|
JsonCache.Root |
JsonCache.Root.mergePolicy(JsonCache.Root.MergePolicy policy)
Sets the merge policy that applies when
load() is called for a cache that is already loaded. |
JsonCache.Root |
JsonCache.root()
Returns the root cache of which this is a descendant.
|
JsonCache.Root |
JsonCache.Root.save(File file)
Saves the object graph in JSON format to the specified file.
|
JsonCache.Root |
JsonCache.Root.save(OutputStream out)
Saves the object graph in JSON format to the specified stream.
|
JsonCache.Root |
JsonCache.Root.unload()
Unloads the object graph, setting the root node to
null. |
Copyright © 2020. All rights reserved.