use of io.micronaut.data.runtime.operations.ExecutorAsyncOperations in project micronaut-data by micronaut-projects.
the class HibernateJpaOperations method async.
@NonNull
@Override
public ExecutorAsyncOperations async() {
ExecutorAsyncOperations asyncOperations = this.asyncOperations;
if (asyncOperations == null) {
synchronized (this) {
// double check
asyncOperations = this.asyncOperations;
if (asyncOperations == null) {
asyncOperations = new ExecutorAsyncOperations(this, executorService != null ? executorService : newLocalThreadPool());
this.asyncOperations = asyncOperations;
}
}
}
return asyncOperations;
}
use of io.micronaut.data.runtime.operations.ExecutorAsyncOperations in project micronaut-data by micronaut-projects.
the class DefaultJdbcRepositoryOperations method async.
@NonNull
@Override
public ExecutorAsyncOperations async() {
ExecutorAsyncOperations asyncOperations = this.asyncOperations;
if (asyncOperations == null) {
synchronized (this) {
// double check
asyncOperations = this.asyncOperations;
if (asyncOperations == null) {
asyncOperations = new ExecutorAsyncOperations(this, executorService != null ? executorService : newLocalThreadPool());
this.asyncOperations = asyncOperations;
}
}
}
return asyncOperations;
}
use of io.micronaut.data.runtime.operations.ExecutorAsyncOperations in project micronaut-data by micronaut-projects.
the class DefaultMongoRepositoryOperations method async.
@NonNull
@Override
public ExecutorAsyncOperations async() {
ExecutorAsyncOperations asyncOperations = this.asyncOperations;
if (asyncOperations == null) {
synchronized (this) {
// double check
asyncOperations = this.asyncOperations;
if (asyncOperations == null) {
asyncOperations = new ExecutorAsyncOperations(this, executorService != null ? executorService : newLocalThreadPool());
this.asyncOperations = asyncOperations;
}
}
}
return asyncOperations;
}
Aggregations