org.wildfly.swarm.config.io

## Class BufferPool<T extends BufferPool<T>>

- java.lang.Object
- - java.util.AbstractMap<K,V>
  - - java.util.HashMap
    - - org.wildfly.swarm.config.io.BufferPool<T>

- All Implemented Interfaces:
    Serializable, Cloneable, Map

      public class BufferPool<T extends BufferPool<T>>
      extends HashMap

  Defines buffer pool
  See Also:
    Serialized Form

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class java.util.AbstractMap

      `AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>`

    - ### Nested classes/interfaces inherited from interface java.util.Map

      `Map.Entry<K,V>`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BufferPool(String key)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addPropertyChangeListener(PropertyChangeListener listener)` Adds a property change listener
    `Integer` | `bufferSize()` The size of each buffer slice in bytes, if not set optimal value is calculated based on available RAM resources in your system.
    `T` | `bufferSize(Integer value)` The size of each buffer slice in bytes, if not set optimal value is calculated based on available RAM resources in your system.
    `Integer` | `buffersPerSlice()` How many buffers per slice, if not set optimal value is calculated based on available RAM resources in your system.
    `T` | `buffersPerSlice(Integer value)` How many buffers per slice, if not set optimal value is calculated based on available RAM resources in your system.
    `Boolean` | `directBuffers()` Does the buffer pool use direct buffers, some platforms don't support direct buffers
    `T` | `directBuffers(Boolean value)` Does the buffer pool use direct buffers, some platforms don't support direct buffers
    `String` | `getKey()`
    `void` | `removePropertyChangeListener(PropertyChangeListener listener)` Removes a property change listener

    - ### Methods inherited from class java.util.HashMap

      `clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values`

    - ### Methods inherited from class java.util.AbstractMap

      `equals, hashCode, toString`

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

      `getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface java.util.Map

      `equals, hashCode`

- - ### Constructor Detail

    - #### BufferPool

          public BufferPool(String key)

  - ### Method Detail

    - #### getKey

          public String getKey()

    - #### addPropertyChangeListener

          public void addPropertyChangeListener(PropertyChangeListener listener)

      Adds a property change listener

    - #### removePropertyChangeListener

          public void removePropertyChangeListener(PropertyChangeListener listener)

      Removes a property change listener

    - #### bufferSize

          public Integer bufferSize()

      The size of each buffer slice in bytes, if not set optimal value is calculated based on available RAM resources in your system.

    - #### bufferSize

          public T bufferSize(Integer value)

      The size of each buffer slice in bytes, if not set optimal value is calculated based on available RAM resources in your system.

    - #### buffersPerSlice

          public Integer buffersPerSlice()

      How many buffers per slice, if not set optimal value is calculated based on available RAM resources in your system.

    - #### buffersPerSlice

          public T buffersPerSlice(Integer value)

      How many buffers per slice, if not set optimal value is calculated based on available RAM resources in your system.

    - #### directBuffers

          public Boolean directBuffers()

      Does the buffer pool use direct buffers, some platforms don't support direct buffers

    - #### directBuffers

          public T directBuffers(Boolean value)

      Does the buffer pool use direct buffers, some platforms don't support direct buffers

Copyright © 2018 JBoss by Red Hat. All rights reserved.