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>, org.wildfly.clustering.function.Predicate<String>

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

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

    ALWAYS, NEVER
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionExpirationTask(org.wildfly.clustering.session.cache.SessionFactory<SC,MV,AV,LC> sessionFactory, org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch> batchFactory, org.wildfly.clustering.function.Consumer<org.wildfly.clustering.session.ImmutableSession> expirationListener)
    Creates a remover for expired sessions.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    and, compose, composeBinary, composeDouble, composeInt, composeLong, handle, negate, or, xor
  • Constructor Details

    • SessionExpirationTask

      public SessionExpirationTask(org.wildfly.clustering.session.cache.SessionFactory<SC,MV,AV,LC> sessionFactory, org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch> batchFactory, org.wildfly.clustering.function.Consumer<org.wildfly.clustering.session.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