Enum Class VertxSessionSpecificationProvider

java.lang.Object
java.lang.Enum<VertxSessionSpecificationProvider>
org.wildfly.clustering.vertx.web.VertxSessionSpecificationProvider
All Implemented Interfaces:
Serializable, Comparable<VertxSessionSpecificationProvider>, Constable, org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<org.wildfly.clustering.session.ImmutableSession,Void>, org.wildfly.clustering.session.spec.SessionSpecificationProvider<org.wildfly.clustering.session.ImmutableSession,io.vertx.core.Context>

public enum VertxSessionSpecificationProvider extends Enum<VertxSessionSpecificationProvider> implements org.wildfly.clustering.session.spec.SessionSpecificationProvider<org.wildfly.clustering.session.ImmutableSession,io.vertx.core.Context>, org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<org.wildfly.clustering.session.ImmutableSession,Void>
  • Enum Constant Details

  • Method Details

    • values

      public static VertxSessionSpecificationProvider[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VertxSessionSpecificationProvider valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • asSession

      public org.wildfly.clustering.session.ImmutableSession asSession(org.wildfly.clustering.session.ImmutableSession session, io.vertx.core.Context context)
      Specified by:
      asSession in interface org.wildfly.clustering.session.spec.SessionSpecificationProvider<org.wildfly.clustering.session.ImmutableSession,io.vertx.core.Context>
    • getEventListenerClass

      public Class<Void> getEventListenerClass()
      Specified by:
      getEventListenerClass in interface org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<org.wildfly.clustering.session.ImmutableSession,Void>
    • preEvent

      public org.wildfly.clustering.function.Consumer<org.wildfly.clustering.session.ImmutableSession> preEvent(Void listener)
      Specified by:
      preEvent in interface org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<org.wildfly.clustering.session.ImmutableSession,Void>
    • postEvent

      public org.wildfly.clustering.function.Consumer<org.wildfly.clustering.session.ImmutableSession> postEvent(Void listener)
      Specified by:
      postEvent in interface org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<org.wildfly.clustering.session.ImmutableSession,Void>
    • asEventListener

      public Void asEventListener(Consumer<org.wildfly.clustering.session.ImmutableSession> preEvent, Consumer<org.wildfly.clustering.session.ImmutableSession> postEvent)
      Specified by:
      asEventListener in interface org.wildfly.clustering.session.spec.SessionEventListenerSpecificationProvider<org.wildfly.clustering.session.ImmutableSession,Void>