wrench::ServerlessComputeServiceFunctionInvocationAnswerMessage

class ServerlessComputeServiceFunctionInvocationAnswerMessage : public wrench::ServerlessComputeServiceMessage

A message sent from a ServerlessComputeService in reply to a function invocation request.

Public Functions

ServerlessComputeServiceFunctionInvocationAnswerMessage(bool success, std::shared_ptr<Invocation> invocation, std::shared_ptr<FailureCause> failure_cause, sg_size_t payload)

Constructor.

Parameters:
  • success – whether the invocation was successful or not

  • invocation – the invocation object

  • failure_cause – a failure cause (or nullptr if success)

  • payload – the message size in bytes

Public Members

std::shared_ptr<FailureCause> failure_cause

The cause of the failure, or nullptr on success.

std::shared_ptr<Invocation> invocation

The invocation object.

bool success

Whether the invocation will be completed or not at some point in the future.