Interface SessionFunction<V extends SessionEntity>

Type Parameters:
V - The session entity to apply the function
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SessionFunction<V extends SessionEntity>

Function definition used for the lifespan and idle calculations for the infinispan session entities. The method receives the realm, client if needed (it's optional) and the entity. It returns the timestamp for the entity (lifespan, idle timeout,...) in milliseconds.

  • Method Summary

    Modifier and Type
    apply(RealmModel realm, ClientModel client, V entity)