Package dev.restate.sdk.core
Interface RestateServerCallListener<M>
-
- Type Parameters:
M- type of the incoming message
public interface RestateServerCallListener<M>Interface to invoke generated service code.This interface is strongly inspired by
ServerCall.Listener.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()Send cancel signal to service code.voidclose()Close the service code.voidinvoke(M message)Invoke the service code.voidlistenerReady()Set the underlying listener as ready.
-
-
-
Method Detail
-
invoke
void invoke(M message)
Invoke the service code.
-
cancel
void cancel()
Send cancel signal to service code.
-
close
void close()
Close the service code.
-
listenerReady
void listenerReady()
Set the underlying listener as ready.
-
-