## Attributes (3)

- buffer-size - The size of an individual buffer, in bytes.

  Type | INT
  Default Value | 1024
  Is the attribute nillable? | true
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | all-services
  Min | 0
  Max | 2147483647
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "INT"
          },
          "description" : "The size of an individual buffer, in bytes.",
          "expressions-allowed" : true,
          "required" : false,
          "nillable" : true,
          "default" : 1024,
          "min" : 0,
          "max" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "all-services",
          "capability-reference" : null
      }

- buffers-per-region - The numbers of buffers in a region

  Type | INT
  Default Value | 1024
  Is the attribute nillable? | true
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | all-services
  Min | 0
  Max | 2147483647
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "INT"
          },
          "description" : "The numbers of buffers in a region",
          "expressions-allowed" : true,
          "required" : false,
          "nillable" : true,
          "default" : 1024,
          "min" : 0,
          "max" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "all-services",
          "capability-reference" : null
      }

- max-regions - The maximum number of regions

  Type | INT
  Default Value | 10
  Is the attribute nillable? | true
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | all-services
  Min | 0
  Max | 2147483647
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "INT"
          },
          "description" : "The maximum number of regions",
          "expressions-allowed" : true,
          "required" : false,
          "nillable" : true,
          "default" : 10,
          "min" : 0,
          "max" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "all-services",
          "capability-reference" : null
      }

## Operations (2)

- add - Adds a buffer cache

  Request Parameter | Type | Required | Expressions Allowed | Default value | Description
  --- | --- | --- | --- | --- | ---
  buffer-size | INT | false | true | 1024 | The size of an individual buffer, in bytes.
  buffers-per-region | INT | false | true | 1024 | The numbers of buffers in a region
  max-regions | INT | false | true | 10 | The maximum number of regions

  Raw DMR model |
      {
          "operation-name" : "add",
          "description" : "Adds a buffer cache",
          "request-properties" : {
              "buffer-size" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "INT"
                  },
                  "description" : "The size of an individual buffer, in bytes.",
                  "expressions-allowed" : true,
                  "required" : false,
                  "nillable" : true,
                  "default" : 1024,
                  "min" : 0,
                  "max" : 2147483647,
                  "stability" : "default"
              },
              "buffers-per-region" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "INT"
                  },
                  "description" : "The numbers of buffers in a region",
                  "expressions-allowed" : true,
                  "required" : false,
                  "nillable" : true,
                  "default" : 1024,
                  "min" : 0,
                  "max" : 2147483647,
                  "stability" : "default"
              },
              "max-regions" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "INT"
                  },
                  "description" : "The maximum number of regions",
                  "expressions-allowed" : true,
                  "required" : false,
                  "nillable" : true,
                  "default" : 10,
                  "min" : 0,
                  "max" : 2147483647,
                  "stability" : "default"
              }
          },
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "runtime-only" : false
      }

- remove - Removes a buffer cache

  Raw DMR model |
      {
          "operation-name" : "remove",
          "description" : "Removes a buffer cache",
          "request-properties" : {},
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "restart-required" : "all-services",
          "runtime-only" : false
      }

## Galleon Features

Galleon features are to be used when creating Galleon feature-packs.

- subsystem.undertow.buffer-cache

      <feature spec="subsystem.undertow.buffer-cache">
        <param name="buffer-cache" value="{resource name}"/>
        <param name="buffer-size" value="{value}"/>
        <param name="buffers-per-region" value="{value}"/>
        <param name="max-regions" value="{value}"/>
      <feature/>