gpt4 book ai didi

org.jclouds.concurrent.config.WithSubmissionTrace类的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 13:27:05 25 4
gpt4 key购买 nike

本文整理了Java中org.jclouds.concurrent.config.WithSubmissionTrace类的一些代码示例,展示了WithSubmissionTrace类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WithSubmissionTrace类的具体详情如下:
包路径:org.jclouds.concurrent.config.WithSubmissionTrace
类名称:WithSubmissionTrace

WithSubmissionTrace介绍

暂无

代码示例

代码示例来源:origin: jclouds/legacy-jclouds

public ExecutorServiceModule(@Named(PROPERTY_USER_THREADS) ListeningExecutorService userExecutor,
   @Named(PROPERTY_IO_WORKER_THREADS) ListeningExecutorService ioExecutor) {
 this.userExecutorFromConstructor = WithSubmissionTrace.wrap(userExecutor);
 this.ioExecutorFromConstructor = WithSubmissionTrace.wrap(ioExecutor);
}

代码示例来源:origin: jclouds/legacy-jclouds

/** returns the stack trace at the caller */
private static StackTraceElement[] getStackTraceHere() {
 StackTraceElement[] trace = Thread.currentThread().getStackTrace();
 return filterTrace(trace);
}

代码示例来源:origin: io.cloudsoft.jclouds/jclouds-core

public ExecutorServiceModule(@Named(PROPERTY_USER_THREADS) ListeningExecutorService userExecutor,
   @Named(PROPERTY_IO_WORKER_THREADS) ListeningExecutorService ioExecutor) {
 this.userExecutorFromConstructor = WithSubmissionTrace.wrap(userExecutor);
 this.ioExecutorFromConstructor = WithSubmissionTrace.wrap(ioExecutor);
}

代码示例来源:origin: io.cloudsoft.jclouds/jclouds-core

/** returns the stack trace at the caller */
private static StackTraceElement[] getStackTraceHere() {
 StackTraceElement[] trace = Thread.currentThread().getStackTrace();
 return filterTrace(trace);
}

代码示例来源:origin: org.jclouds/jclouds-core

public ExecutorServiceModule(@Named(PROPERTY_USER_THREADS) ListeningExecutorService userExecutor,
   @Named(PROPERTY_IO_WORKER_THREADS) ListeningExecutorService ioExecutor) {
 this.userExecutorFromConstructor = WithSubmissionTrace.wrap(userExecutor);
 this.ioExecutorFromConstructor = WithSubmissionTrace.wrap(ioExecutor);
}

代码示例来源:origin: org.jclouds/jclouds-core

/** returns the stack trace at the caller */
private static StackTraceElement[] getStackTraceHere() {
 StackTraceElement[] trace = Thread.currentThread().getStackTrace();
 return filterTrace(trace);
}

代码示例来源:origin: com.amysta.jclouds/jclouds-core

public ExecutorServiceModule(@Named(PROPERTY_USER_THREADS) ListeningExecutorService userExecutor) {
 this.userExecutorFromConstructor = WithSubmissionTrace.wrap(userExecutor);
}

代码示例来源:origin: com.amysta.jclouds/jclouds-core

/** returns the stack trace at the caller */
private static StackTraceElement[] getStackTraceHere() {
 StackTraceElement[] trace = Thread.currentThread().getStackTrace();
 return filterTrace(trace);
}

代码示例来源:origin: apache/jclouds

public ExecutorServiceModule(@Named(PROPERTY_USER_THREADS) ListeningExecutorService userExecutor) {
 this.userExecutorFromConstructor = WithSubmissionTrace.wrap(userExecutor);
}

代码示例来源:origin: Nextdoor/bender

/** returns the stack trace at the caller */
private static StackTraceElement[] getStackTraceHere() {
 StackTraceElement[] trace = Thread.currentThread().getStackTrace();
 return filterTrace(trace);
}

代码示例来源:origin: Nextdoor/bender

public ExecutorServiceModule(@Named(PROPERTY_USER_THREADS) ListeningExecutorService userExecutor) {
 this.userExecutorFromConstructor = WithSubmissionTrace.wrap(userExecutor);
}

代码示例来源:origin: apache/jclouds

/** returns the stack trace at the caller */
private static StackTraceElement[] getStackTraceHere() {
 StackTraceElement[] trace = Thread.currentThread().getStackTrace();
 return filterTrace(trace);
}

代码示例来源:origin: apache/jclouds

protected ListeningExecutorService newExecutorService() {
 return WithSubmissionTrace.wrap(listeningDecorator(Executors.newSingleThreadExecutor()));
}

代码示例来源:origin: io.cloudsoft.jclouds/jclouds-core

private static ExecutionException addSubmissionTrace(StackTraceElement[] submissionTrace, ExecutionException e) {
 if (e.getCause() == null) {
   return filterTrace(e);
 }
 Throwable cause = e.getCause();
 StackTraceElement[] combined = filterTrace(concat(cause.getStackTrace(), submissionTrace, StackTraceElement.class));
 cause.setStackTrace(combined);
 return filterTrace(e);
}

代码示例来源:origin: org.apache.jclouds.provider/profitbricks

protected ListeningExecutorService newExecutorService() {
 return WithSubmissionTrace.wrap(listeningDecorator(Executors.newSingleThreadExecutor()));
}

代码示例来源:origin: jclouds/legacy-jclouds

private static ExecutionException addSubmissionTrace(StackTraceElement[] submissionTrace, ExecutionException e) {
 if (e.getCause() == null) {
   return filterTrace(e);
 }
 Throwable cause = e.getCause();
 StackTraceElement[] combined = filterTrace(concat(cause.getStackTrace(), submissionTrace, StackTraceElement.class));
 cause.setStackTrace(combined);
 return filterTrace(e);
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@Singleton
@Named(PROPERTY_USER_THREADS)
ListeningExecutorService provideListeningUserExecutorService(@Named(PROPERTY_USER_THREADS) int count, Closer closer) { // NO_UCD
 if (userExecutorFromConstructor != null)
   return userExecutorFromConstructor;
 return shutdownOnClose(WithSubmissionTrace.wrap(newThreadPoolNamed("user thread %d", count)), closer);
}

代码示例来源:origin: Nextdoor/bender

private static ExecutionException addSubmissionTrace(StackTraceElement[] submissionTrace, ExecutionException e) {
 if (e.getCause() == null) {
   return filterTrace(e);
 }
 Throwable cause = e.getCause();
 StackTraceElement[] combined = filterTrace(concat(cause.getStackTrace(), submissionTrace, StackTraceElement.class));
 cause.setStackTrace(combined);
 return filterTrace(e);
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@Singleton
@Named(PROPERTY_IO_WORKER_THREADS)
ListeningExecutorService provideListeningIOExecutorService(@Named(PROPERTY_IO_WORKER_THREADS) int count,
   Closer closer) { // NO_UCD
 if (ioExecutorFromConstructor != null)
   return ioExecutorFromConstructor;
 return shutdownOnClose(WithSubmissionTrace.wrap(newThreadPoolNamed("i/o thread %d", count)), closer);
}

代码示例来源:origin: org.jclouds/jclouds-core

private static ExecutionException addSubmissionTrace(StackTraceElement[] submissionTrace, ExecutionException e) {
 if (e.getCause() == null) {
   return filterTrace(e);
 }
 Throwable cause = e.getCause();
 StackTraceElement[] combined = filterTrace(concat(cause.getStackTrace(), submissionTrace, StackTraceElement.class));
 cause.setStackTrace(combined);
 return filterTrace(e);
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com