Package dev.restate.client
Class SendResponse<Res>
java.lang.Object
dev.restate.client.SendResponse<Res>
- All Implemented Interfaces:
Client.InvocationHandle<Res>
,ResponseHead
public final class SendResponse<Res>
extends Object
implements ResponseHead, Client.InvocationHandle<Res>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface dev.restate.client.ResponseHead
ResponseHead.Headers
-
Constructor Summary
ConstructorsConstructorDescriptionSendResponse
(int statusCode, ResponseHead.Headers headers, SendResponse.SendStatus status, Client.InvocationHandle<Res> invocationHandle) -
Method Summary
Modifier and TypeMethodDescriptionattachAsync
(RequestOptions options) Future version ofClient.InvocationHandle.attach()
, with options.boolean
getOutputAsync
(RequestOptions options) Future version ofClient.InvocationHandle.getOutput()
, with options.int
hashCode()
headers()
int
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.restate.client.Client.InvocationHandle
attach, attach, attachAsync, getOutput, getOutput, getOutputAsync
-
Constructor Details
-
SendResponse
public SendResponse(int statusCode, ResponseHead.Headers headers, SendResponse.SendStatus status, Client.InvocationHandle<Res> invocationHandle)
-
-
Method Details
-
statusCode
public int statusCode()- Specified by:
statusCode
in interfaceResponseHead
- Returns:
- the response status code returned from the HTTP client
-
headers
- Specified by:
headers
in interfaceResponseHead
- Returns:
- the response headers returned from the HTTP client
-
sendStatus
-
invocationId
- Specified by:
invocationId
in interfaceClient.InvocationHandle<Res>
- Returns:
- the invocation identifier
-
attachAsync
Description copied from interface:Client.InvocationHandle
Future version ofClient.InvocationHandle.attach()
, with options.- Specified by:
attachAsync
in interfaceClient.InvocationHandle<Res>
- See Also:
-
getOutputAsync
Description copied from interface:Client.InvocationHandle
Future version ofClient.InvocationHandle.getOutput()
, with options.- Specified by:
getOutputAsync
in interfaceClient.InvocationHandle<Res>
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-