Class SessionAffinityRegistryGroupMemberMapper<M extends org.wildfly.clustering.server.GroupMember>

java.lang.Object
org.wildfly.clustering.session.cache.affinity.SessionAffinityRegistryGroupMemberMapper<M>
Type Parameters:
M - the group member type
All Implemented Interfaces:
Function<M,String>, org.wildfly.clustering.function.Function<M,String>

public class SessionAffinityRegistryGroupMemberMapper<M extends org.wildfly.clustering.server.GroupMember> extends Object implements org.wildfly.clustering.function.Function<M,String>
Uses a registry to map a group member to a string value.
Author:
Paul Ferraro
  • Field Summary

    Fields inherited from interface org.wildfly.clustering.function.Function

    IDENTITY, NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionAffinityRegistryGroupMemberMapper(org.wildfly.clustering.server.registry.Registry<M,String,Void> registry)
    Creates a affinity function from the specified registry.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(M member)
     

    Methods inherited from class Object

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

    Methods inherited from interface org.wildfly.clustering.function.Function

    andThen, compose, compose, handle, optional, orDefault, withDefault, withMonitor
  • Constructor Details

    • SessionAffinityRegistryGroupMemberMapper

      public SessionAffinityRegistryGroupMemberMapper(org.wildfly.clustering.server.registry.Registry<M,String,Void> registry)
      Creates a affinity function from the specified registry.
      Parameters:
      registry - the registry storing session affinity entries
  • Method Details

    • apply

      public String apply(M member)
      Specified by:
      apply in interface Function<M extends org.wildfly.clustering.server.GroupMember, String>