Class SessionExpirationTask<SC,MV,AV,LC>

java.lang.Object
org.wildfly.clustering.session.infinispan.embedded.SessionExpirationTask<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>

public class SessionExpirationTask<SC,MV,AV,LC> extends Object implements Predicate<String>
Session remover that removes a session if and only if it is expired.
Author:
Paul Ferraro
  • Constructor Details

    • SessionExpirationTask

      public SessionExpirationTask(SessionFactory<SC,MV,AV,LC> sessionFactory, Supplier<Batch> batchFactory, Consumer<ImmutableSession> expirationListener)
      Creates a remover for expired sessions.
      Parameters:
      sessionFactory - the associated session factory
      batchFactory - the batch factory
      expirationListener - the listener of expired sessions
  • Method Details