Class ReactiveQueryExecutorLookup


  • public final class ReactiveQueryExecutorLookup
    extends java.lang.Object
    This is a dirty trick to mitigate the performance impact of JDK-8180450; hopefully temporary but we have no indication about a possible fix at the moment. The gist is that we need to avoid repeatedly checking for ReactiveSessionImpl to implement certain interfaces; we frequently need to cast the current {@see SharedSessionContractImplementor} to {@see ReactiveQueryExecutor}: let's take advantage of the fact that it's almost certainly going to be of a known concrete type, specifically a {@see ReactiveSessionImpl}.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ReactiveQueryProducer extract​(org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Extracts the ReactiveQueryExecutor from a Session.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactiveQueryExecutorLookup

        public ReactiveQueryExecutorLookup()
    • Method Detail

      • extract

        public static ReactiveQueryProducer extract​(org.hibernate.engine.spi.SharedSessionContractImplementor session)
        Extracts the ReactiveQueryExecutor from a Session.
        Parameters:
        session -
        Returns: