Package dev.restate.sdk.common.syscalls
Interface HandlerRunner<REQ,RES,O>
- All Known Implementing Classes:
HandlerRunner
public interface HandlerRunner<REQ,RES,O>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ThreadLocal
<Syscalls> Thread local to storeSyscalls
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(HandlerSpecification<REQ, RES> handlerSpecification, Syscalls syscalls, @Nullable O options, SyscallCallback<ByteBuffer> callback)
-
Field Details
-
SYSCALLS_THREAD_LOCAL
Thread local to storeSyscalls
.Implementations of
HandlerRunner
should correctly propagate this thread local in order for logging to work correctly. Could be improved if ScopedContext will ever be introduced in log4j2.
-
-
Method Details
-
run
void run(HandlerSpecification<REQ, RES> handlerSpecification, Syscalls syscalls, @Nullable O options, SyscallCallback<ByteBuffer> callback)
-