We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码示例:
final ThreadLocal<Object> key = new TransmittableThreadLocal<>(); key.set("key"); CompletableFuture.runAsync(ThrowingRunnable.throwing(() -> System.out.println("key: "+key.get()) )).get();
K8S配置:
The text was updated successfully, but these errors were encountered:
需要有TTL的修饰操作,使用方法如下: @llm163520 (更多具体内容如其它的使用方式,请查看文档 👥 User Guide)
TTL
final ThreadLocal<Object> context = new TransmittableThreadLocal<>(); context.set("key"); final Runnable bizRunnable = ...; // 对传入的Runnable 做TTL修饰(可以有其它的使用方式,参见「👥 User Guide」) CompletableFuture.runAsync(TtlRunnable.get(bizRunnable)).get();
PS: 与K8S这样的运行环境无直接关系。
K8S
Sorry, something went wrong.
oldratlee
No branches or pull requests
代码示例:
K8S配置:
The text was updated successfully, but these errors were encountered: