Class Service.Handler<REQ,​RES>

  • All Implemented Interfaces:
    dev.restate.sdk.common.syscalls.InvocationHandler<Service.Options>
    Enclosing class:
    Service

    public static class Service.Handler<REQ,​RES>
    extends java.lang.Object
    implements dev.restate.sdk.common.syscalls.InvocationHandler<Service.Options>
    • Method Detail

      • getRunner

        public java.util.function.BiFunction<Context,​REQ,​RES> getRunner()
      • toHandlerDefinition

        public dev.restate.sdk.common.syscalls.HandlerDefinition<Service.Options> toHandlerDefinition()
      • handle

        public void handle​(dev.restate.sdk.common.syscalls.Syscalls syscalls,
                           Service.Options options,
                           dev.restate.sdk.common.syscalls.SyscallCallback<com.google.protobuf.ByteString> callback)
        Specified by:
        handle in interface dev.restate.sdk.common.syscalls.InvocationHandler<REQ>