Class ReactiveQueryExecutorLookup
- java.lang.Object
-
- org.hibernate.reactive.session.impl.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}.
-
-
Constructor Summary
Constructors Constructor Description ReactiveQueryExecutorLookup()
-
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.
-
-
-
Method Detail
-
extract
public static ReactiveQueryProducer extract(org.hibernate.engine.spi.SharedSessionContractImplementor session)
Extracts the ReactiveQueryExecutor from a Session.- Parameters:
session
-- Returns:
-
-