toggle menu
sdk-java
2.0.0
jvm
switch theme
search in API
sdk-common
/
dev.restate.sdk.endpoint.definition
/
HandlerDefinition
Handler
Definition
class
HandlerDefinition
<
REQ
,
RES
>
Members
Properties
accept
Content
Type
Link copied to clipboard
@
Nullable
@get:
Nullable
val
acceptContentType
:
@
Nullable
String
documentation
Link copied to clipboard
@
Nullable
@get:
Nullable
val
documentation
:
@
Nullable
String
handler
Type
Link copied to clipboard
val
handlerType
:
HandlerType
metadata
Link copied to clipboard
val
metadata
:
Map
<
String
,
String
>
name
Link copied to clipboard
val
name
:
String
request
Serde
Link copied to clipboard
val
requestSerde
:
Serde
<
REQ
>
response
Serde
Link copied to clipboard
val
responseSerde
:
Serde
<
RES
>
runner
Link copied to clipboard
val
runner
:
HandlerRunner
<
REQ
,
RES
>
Functions
of
Link copied to clipboard
open
fun
<
REQ
,
RES
>
of
(
handler
:
String
,
handlerType
:
HandlerType
,
requestSerde
:
Serde
<
REQ
>
,
responseSerde
:
Serde
<
RES
>
,
runner
:
HandlerRunner
<
REQ
,
RES
>
)
:
HandlerDefinition
<
REQ
,
RES
>
with
Accept
Content
Type
Link copied to clipboard
open
fun
withAcceptContentType
(
acceptContentType
:
String
)
:
HandlerDefinition
<
REQ
,
RES
>
with
Documentation
Link copied to clipboard
open
fun
withDocumentation
(
@
Nullable
documentation
:
@
Nullable
String
)
:
HandlerDefinition
<
REQ
,
RES
>
with
Metadata
Link copied to clipboard
open
fun
withMetadata
(
metadata
:
Map
<
String
,
String
>
)
:
HandlerDefinition
<
REQ
,
RES
>