org.jbpm.runtime.manager.impl

## Class CacheManagerImpl

- java.lang.Object
- - org.jbpm.runtime.manager.impl.CacheManagerImpl

- All Implemented Interfaces:
    org.kie.internal.runtime.manager.CacheManager

      public class CacheManagerImpl
      extends Object
      implements org.kie.internal.runtime.manager.CacheManager

  Default implementation of CacheManager that is backed by `ConcurrentHashMap`. Allows to close `Cacheable` items from cache upon dispose.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CacheManagerImpl()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(String key, Object value)`
    `void` | `dispose()`
    `Object` | `get(String key)`
    `Object` | `remove(String key)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CacheManagerImpl

          public CacheManagerImpl()

  - ### Method Detail

    - #### add

          public void add(String key,
                          Object value)

      Specified by:
        `add` in interface `org.kie.internal.runtime.manager.CacheManager`

    - #### get

          public Object get(String key)

      Specified by:
        `get` in interface `org.kie.internal.runtime.manager.CacheManager`

    - #### remove

          public Object remove(String key)

      Specified by:
        `remove` in interface `org.kie.internal.runtime.manager.CacheManager`

    - #### dispose

          public void dispose()

      Specified by:
        `dispose` in interface `org.kie.internal.runtime.manager.CacheManager`

Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.