Namespace: replies

akkaserverless. replies

Creating replies.

Classes

Effect
Reply

Methods


<inner> failure(description)

Create a failure reply.

Parameters:
Name Type Description
description string

A description of the failure.

Returns:

A failure reply.

Type
module:akkaserverless.replies.Reply

<inner> forward(method, message [, metadata])

Create a forward reply.

Parameters:
Name Type Argument Description
method protobuf.Method

The service call representing the forward.

message any

The message to forward.

metadata module:akkaserverless.Metadata <optional>

Optional metadata to pass with the forwarded message.

Returns:

A forward reply.

Type
module:akkaserverless.replies.Reply

<inner> message(message [, metadata])

Create a message reply.

Parameters:
Name Type Argument Description
message any

The message to reply with.

metadata module:akkaserverless.Metadata <optional>

Optional metadata to pass with the reply.

Returns:

A message reply.

Type
module:akkaserverless.replies.Reply

<inner> noReply()

Create a reply that contains neither a message nor a forward nor a failure.

This may be useful for emitting effects without sending a message.

Returns:

An empty reply.

Type
module:akkaserverless.replies.Reply