Package dev.restate.sdk.common.syscalls
Class ServiceDefinition<O>
java.lang.Object
dev.restate.sdk.common.syscalls.ServiceDefinition<O>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable String
HandlerDefinition
<?, ?, O> getHandler
(String name) Collection
<HandlerDefinition<?, ?, O>> int
hashCode()
static <O> ServiceDefinition
<O> of
(String name, ServiceType ty, Collection<HandlerDefinition<?, ?, O>> handlers) withDocumentation
(@Nullable String documentation) withMetadata
(Map<String, String> metadata)
-
Method Details
-
getServiceName
-
getServiceType
-
getHandlers
-
getHandler
-
getDocumentation
-
getMetadata
-
withDocumentation
-
withMetadata
-
equals
-
hashCode
public int hashCode() -
of
public static <O> ServiceDefinition<O> of(String name, ServiceType ty, Collection<HandlerDefinition<?, ?, O>> handlers)
-