Class ReactiveVertxSessionRepository

    • Constructor Detail

    • Method Detail

      • withMetrics

        public void withMetrics​(boolean enableMetrics)
        Activates Mono.metrics() for all operations.
        Parameters:
        enableMetrics - whether metrics should be generated or not.
      • setInvalidateSessionOnDeserializationError

        public void setInvalidateSessionOnDeserializationError​(boolean invalidateSessionOnDeserializationError)
        Instead of propagating DeserializationException to the caller, nothing is returned resulting in the creation of a new session. This is useful if a java class stored in the session was updated a serial version id mismatch occurs.
        Parameters:
        invalidateSessionOnDeserializationError - whether serialization errors should be propagated to the caller.
      • setMetricSequenceName

        public void setMetricSequenceName​(String sequenceName)
        Set a custom sequence name used for metrics see Mono.name(String).
        Parameters:
        sequenceName - overrides the default sequence name
      • setDefaultMaxInactiveInterval

        public void setDefaultMaxInactiveInterval​(Duration maxInactiveInterval)
        Sets the maximum inactive interval before unused sessions are invalidated. A negative time indicates that the session will never timeout. The default is 1800 (30 minutes).
        Parameters:
        maxInactiveInterval - the Duration that the Session should be kept alive between client requests.
      • cleanupExpiredSessions

        public reactor.core.publisher.Mono<Integer> cleanupExpiredSessions()