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

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

public class UnarySessionAffinity<M extends org.wildfly.clustering.server.GroupMember> extends Object implements org.wildfly.clustering.function.UnaryOperator<String>
Session affinity to a multiple members.
Author:
Paul Ferraro
  • Field Summary

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

    IDENTITY, NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a session affinity to a single member.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    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, optional, withMonitor

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

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

    • UnarySessionAffinity

      public UnarySessionAffinity(Function<String,M> affinity, Function<M,String> mapper)
      Creates a session affinity to a single member.
      Parameters:
      affinity - an affinity function
      mapper - an affinity mapper
  • Method Details