ResponseCache (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server

## Class ResponseCache

- java.lang.Object
- - org.apache.zookeeper.server.ResponseCache

-     public class ResponseCache
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `DEFAULT_RESPONSE_CACHE_SIZE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ResponseCache(int cacheSize, String requestType)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `get(String key, Stat stat)`
    `int` | `getCacheSize()`
    `boolean` | `isEnabled()`
    `void` | `put(String path, byte[] data, Stat stat)`

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

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

- - ### Field Detail

    - #### DEFAULT_RESPONSE_CACHE_SIZE

          public static final int DEFAULT_RESPONSE_CACHE_SIZE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### ResponseCache

          public ResponseCache(int cacheSize,
                               String requestType)

  - ### Method Detail

    - #### getCacheSize

          public int getCacheSize()

    - #### put

          public void put(String path,
                          byte[] data,
                          Stat stat)

    - #### get

          public byte[] get(String key,
                            Stat stat)

    - #### isEnabled

          public boolean isEnabled()

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.