Class NarySessionAffinity<M extends org.wildfly.clustering.server.GroupMember>
java.lang.Object
org.wildfly.clustering.session.cache.affinity.NarySessionAffinity<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 NarySessionAffinity<M extends org.wildfly.clustering.server.GroupMember>
extends Object
implements org.wildfly.clustering.function.UnaryOperator<String>
Session affinity to multiple members.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.function.UnaryOperator
IDENTITY, NULL -
Constructor Summary
ConstructorsConstructorDescriptionNarySessionAffinity(Function<String, List<M>> affinity, Function<M, String> mapper, NarySessionAffinityConfiguration config) Creates an affinity to multiple members. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.function.Function
andThen, compose, compose, optional, withMonitorMethods inherited from interface org.wildfly.clustering.function.UnaryOperator
andThen, compose, handle, orDefault, withDefault
-
Constructor Details
-
NarySessionAffinity
public NarySessionAffinity(Function<String, List<M>> affinity, Function<M, String> mapper, NarySessionAffinityConfiguration config) Creates an affinity to multiple members.- Parameters:
affinity- an affinity functionmapper- a mapping of group member to nameconfig- the affinity configuration
-
-
Method Details