Class AddressSerializer.JGroupsAddressFormatter

java.lang.Object
org.wildfly.clustering.server.infinispan.AddressSerializer.JGroupsAddressFormatter
All Implemented Interfaces:
Formatter<org.infinispan.remoting.transport.Address>
Enclosing class:
AddressSerializer

@MetaInfServices(Formatter.class) public static class AddressSerializer.JGroupsAddressFormatter extends Object implements Formatter<org.infinispan.remoting.transport.Address>
A formatter of a JGroups address.
Author:
Paul Ferraro
  • Constructor Details

    • JGroupsAddressFormatter

      public JGroupsAddressFormatter()
      Creates a formatter.
  • Method Details

    • getType

      public Class<? extends org.infinispan.remoting.transport.Address> getType()
      Description copied from interface: Formatter
      Returns the type of the formatted object.
      Specified by:
      getType in interface Formatter<org.infinispan.remoting.transport.Address>
      Returns:
      the type of the formatted object.
    • parse

      public org.infinispan.remoting.transport.Address parse(String value)
      Description copied from interface: Formatter
      Parses the key from the specified string.
      Specified by:
      parse in interface Formatter<org.infinispan.remoting.transport.Address>
      Parameters:
      value - a string representation of the key
      Returns:
      the parsed key
    • format

      public String format(org.infinispan.remoting.transport.Address address)
      Description copied from interface: Formatter
      Formats the specified key to a string representation.
      Specified by:
      format in interface Formatter<org.infinispan.remoting.transport.Address>
      Parameters:
      address - a key to format
      Returns:
      a string representation of the specified key.