Class ExpiredSessionRemover<SC,MV,AV,LC>

java.lang.Object
org.wildfly.clustering.session.infinispan.embedded.ExpiredSessionRemover<SC,MV,AV,LC>
Type Parameters:
SC - the ServletContext specification type
MV - the meta-data value type
AV - the attributes value type
LC - the local context type
All Implemented Interfaces:
Predicate<String>, org.wildfly.clustering.server.Registrar<Consumer<org.wildfly.clustering.session.ImmutableSession>>

public class ExpiredSessionRemover<SC,MV,AV,LC> extends Object implements Predicate<String>, org.wildfly.clustering.server.Registrar<Consumer<org.wildfly.clustering.session.ImmutableSession>>
Session remover that removes a session if and only if it is expired.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • test

      public boolean test(String id)
      Specified by:
      test in interface Predicate<SC>
    • register

      public org.wildfly.clustering.server.Registration register(Consumer<org.wildfly.clustering.session.ImmutableSession> listener)
      Specified by:
      register in interface org.wildfly.clustering.server.Registrar<SC>