提交 6fb66c1f 编写于 作者: H huangli

Fix problem when queue of transaction check ExecutorService is full.

上级 bafd6218
...@@ -30,6 +30,7 @@ import java.util.concurrent.ArrayBlockingQueue; ...@@ -30,6 +30,7 @@ import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
public abstract class AbstractTransactionalMessageCheckListener { public abstract class AbstractTransactionalMessageCheckListener {
...@@ -48,7 +49,7 @@ public abstract class AbstractTransactionalMessageCheckListener { ...@@ -48,7 +49,7 @@ public abstract class AbstractTransactionalMessageCheckListener {
thread.setName("Transaction-msg-check-thread"); thread.setName("Transaction-msg-check-thread");
return thread; return thread;
} }
}); }, new CallerRunsPolicy());
public AbstractTransactionalMessageCheckListener() { public AbstractTransactionalMessageCheckListener() {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册