Skip to content

Template Class TExchangeCallData

Template Class TExchangeCallData

  • Defined in File ExchangeRPCBackend.h

Inheritance Relationships

Base Type

template <class ServiceType, typename RequestType, typename ResponseType>
class TExchangeCallData
: public TCallData<ServiceType, RequestType, ResponseType>

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.h

Dependencies: TCallData


Public Functions

SymbolDetails
TExchangeCallData
GetRequestFutureGet a future representing an eventual request from a client.
FulfillRequestPromiseSend a request from a client to any consumers in Unreal.
DefaultOnRequestPromiseSend a default value to the Unreal-side consumer.
Fail
CanSubmitIs this RPC ready to be completed.

TExchangeCallData

inline TExchangeCallData(ServiceType *Service, ServerCompletionQueue *CQueue,
CallData::AsyncAPIHandler TargetRPC,
bool bIsFirst = false)
#DirectionNameTypeDescription
1ServiceServiceType *
2CQueueServerCompletionQueue *
3TargetRPCCallData::AsyncAPIHandler
4bIsFirstbool(default: false)

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.h

GetRequestFuture

inline TFuture<const RequestType *> GetRequestFuture()

Get a future representing an eventual request from a client.

Returns:

A Future that will be fulfilled once a RPC is initiated

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.h

FulfillRequestPromise

inline void FulfillRequestPromise()

Send a request from a client to any consumers in Unreal.

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.h

DefaultOnRequestPromise

inline void DefaultOnRequestPromise()

Send a default value to the Unreal-side consumer.

used to handle edge cases where two exchanges are made in a row

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.h

Fail

inline void Fail()

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.h

CanSubmit

inline bool CanSubmit()

Is this RPC ready to be completed.

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.h


Public Members

SymbolDetails
bHasRequest
bIsFirst

bHasRequest

bool bHasRequest = false

bIsFirst

bool bIsFirst = false

Protected Types

SymbolDetails
CallData

Type Alias CallData

using CallData = TCallData<ServiceType, RequestType, ResponseType>

Protected Attributes

SymbolDetails
RequestPromise

RequestPromise

TPromise<const RequestType *> RequestPromise