org.wildfly.swarm.config.jgroups

## Class Protocol<T extends Protocol<T>>

- java.lang.Object
- - org.wildfly.swarm.config.jgroups.Protocol<T>

-     public class Protocol<T extends Protocol<T>>
      extends Object

  The configuration of a protocol within a protocol stack.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Protocol.ProtocolResources` Child mutators for Protocol

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Protocol(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
    `String` | `getKey()`
    `String` | `module()` The module with which to resolve the protocol type.
    `T` | `module(String value)` The module with which to resolve the protocol type.
    `Map` | `properties()` The properties of this protocol.
    `T` | `properties(List<Property> value)` Add all Property objects to this subresource
    `T` | `properties(Map value)` The properties of this protocol.
    `T` | `property(Property value)` Add the Property object to the list of subresources
    `T` | `property(PropertySupplier supplier)` Install a supplied Property object to the list of subresources
    `T` | `property(String childKey)` Create and configure a Property object to the list of subresources
    `T` | `property(String key, Object value)` The properties of this protocol.
    `T` | `property(String childKey, PropertyConsumer consumer)` Create and configure a Property object to the list of subresources
    `void` | `removePropertyChangeListener(PropertyChangeListener listener)` Removes a property change listener
    `String` | `socketBinding()` The socket binding specification for this protocol layer, used to specify IP interfaces and ports for communication.
    `T` | `socketBinding(String value)` The socket binding specification for this protocol layer, used to specify IP interfaces and ports for communication.
    `Boolean` | `statisticsEnabled()` Indicates whether or not this protocol will collect statistics overriding stack configuration.
    `T` | `statisticsEnabled(Boolean value)` Indicates whether or not this protocol will collect statistics overriding stack configuration.
    `Protocol.ProtocolResources` | `subresources()`

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

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

- - ### Constructor Detail

    - #### Protocol

          public Protocol(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

    - #### subresources

          public Protocol.ProtocolResources subresources()

    - #### properties

          public T properties(List<Property> value)

      Add all Property objects to this subresource
      Parameters:
        `value` - List of Property objects.
      Returns:
        this

    - #### property

          public T property(Property value)

      Add the Property object to the list of subresources
      Parameters:
        `value` - The Property to add
      Returns:
        this

    - #### property

          public T property(String childKey,
                            PropertyConsumer consumer)

      Create and configure a Property object to the list of subresources
      Parameters:
        `key` - The key for the Property resource
        `config` - The PropertyConsumer to use
      Returns:
        this

    - #### property

          public T property(String childKey)

      Create and configure a Property object to the list of subresources
      Parameters:
        `key` - The key for the Property resource
      Returns:
        this

    - #### property

          public T property(PropertySupplier supplier)

      Install a supplied Property object to the list of subresources

    - #### module

          public String module()

      The module with which to resolve the protocol type.

    - #### module

          public T module(String value)

      The module with which to resolve the protocol type.

    - #### properties

          public Map properties()

      The properties of this protocol.

    - #### properties

          public T properties(Map value)

      The properties of this protocol.

    - #### property

          public T property(String key,
                            Object value)

      The properties of this protocol.

    - #### socketBinding

          public String socketBinding()

      The socket binding specification for this protocol layer, used to specify IP interfaces and ports for communication.

    - #### socketBinding

          public T socketBinding(String value)

      The socket binding specification for this protocol layer, used to specify IP interfaces and ports for communication.

    - #### statisticsEnabled

          public Boolean statisticsEnabled()

      Indicates whether or not this protocol will collect statistics overriding stack configuration.

    - #### statisticsEnabled

          public T statisticsEnabled(Boolean value)

      Indicates whether or not this protocol will collect statistics overriding stack configuration.

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