Class SessionSaveDelayer

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class SessionSaveDelayer
    extends Object
    implements Closeable
    A delay mechanism for Session.save() operations. By default, Session.save calls are not delayed. If enabled, some of the save() operations can be delayed for a certain number of microseconds. This facility is enabled / disabled via feature toggle, and controlled via JMX bean, or (for testing) via two system properties. There is no attempt to control the delay, or which threads to delay, from within. It is meant for emergency situation, specially for cases where some threads write too much.
    • Constructor Detail

      • SessionSaveDelayer

        public SessionSaveDelayer​(@NotNull
                                  @NotNull Whiteboard whiteboard)