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 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.booleangetOutputAsync(RequestOptions options) Future version ofClient.InvocationHandle.getOutput(), with options.inthashCode()headers()inttoString()Methods inherited from interface 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:
statusCodein interfaceResponseHead- Returns:
- the response status code returned from the HTTP client
-
headers
- Specified by:
headersin interfaceResponseHead- Returns:
- the response headers returned from the HTTP client
-
sendStatus
-
invocationId
- Specified by:
invocationIdin interfaceClient.InvocationHandle<Res>- Returns:
- the invocation identifier
-
attachAsync
Description copied from interface:Client.InvocationHandleFuture version ofClient.InvocationHandle.attach(), with options.- Specified by:
attachAsyncin interfaceClient.InvocationHandle<Res>- See Also:
-
getOutputAsync
Description copied from interface:Client.InvocationHandleFuture version ofClient.InvocationHandle.getOutput(), with options.- Specified by:
getOutputAsyncin interfaceClient.InvocationHandle<Res>- See Also:
-
equals
-
hashCode
-
toString
-