Package dev.restate.sdk.common.syscalls
Interface InvocationHandler<REQ,RES,O>
-
public interface InvocationHandler<REQ,RES,O>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ThreadLocal<Syscalls>SYSCALLS_THREAD_LOCALThread local to storeSyscalls.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(HandlerSpecification<REQ,RES> handlerSpecification, Syscalls syscalls, O options, SyscallCallback<com.google.protobuf.ByteString> callback)
-
-
-
Field Detail
-
SYSCALLS_THREAD_LOCAL
static final java.lang.ThreadLocal<Syscalls> SYSCALLS_THREAD_LOCAL
Thread local to storeSyscalls.Implementations of
InvocationHandlershould correctly propagate this thread local in order for logging to work correctly. Could be improved if ScopedContext will ever be introduced in log4j2.
-
-
Method Detail
-
handle
void handle(HandlerSpecification<REQ,RES> handlerSpecification, Syscalls syscalls, O options, SyscallCallback<com.google.protobuf.ByteString> callback)
-
-