Template Class TExchangeCallData
Template Class TExchangeCallData
- Defined in File ExchangeRPCBackend.h
Inheritance Relationships
Base Type
public TCallData< ServiceType, RequestType, ResponseType >(Template Class TCallData)
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
| Symbol | Details |
|---|---|
TExchangeCallData | — |
GetRequestFuture | Get a future representing an eventual request from a client. |
FulfillRequestPromise | Send a request from a client to any consumers in Unreal. |
DefaultOnRequestPromise | Send a default value to the Unreal-side consumer. |
Fail | — |
CanSubmit | Is this RPC ready to be completed. |
TExchangeCallData
inline TExchangeCallData(ServiceType *Service, ServerCompletionQueue *CQueue, CallData::AsyncAPIHandler TargetRPC, bool bIsFirst = false)| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Service | ServiceType * | — |
| 2 | — | CQueue | ServerCompletionQueue * | — |
| 3 | — | TargetRPC | CallData::AsyncAPIHandler | — |
| 4 | — | bIsFirst | bool | (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
| Symbol | Details |
|---|---|
bHasRequest | — |
bIsFirst | — |
bHasRequest
bool bHasRequest = falsebIsFirst
bool bIsFirst = falseProtected Types
| Symbol | Details |
|---|---|
CallData | — |
Type Alias CallData
using CallData = TCallData<ServiceType, RequestType, ResponseType>Protected Attributes
| Symbol | Details |
|---|---|
RequestPromise | — |
RequestPromise
TPromise<const RequestType *> RequestPromise