6#ifndef OPENCBDC_TX_SRC_PARSEC_AGENT_INTERFACE_H_
7#define OPENCBDC_TX_SRC_PARSEC_AGENT_INTERFACE_H_
65 virtual auto exec() ->
bool = 0;
70 -> runtime_locking_shard::key_type;
81 runtime_locking_shard::key_type m_function;
Buffer to store and retrieve byte data.
virtual auto exec() -> bool=0
Executes the function managed by this agent with the given parameter.
virtual ~interface()=default
auto get_result_callback() const -> exec_callback_type
Return the result callback function stored by this agent.
interface(interface &&)=delete
interface(const interface &)=delete
std::variant< return_type, error_code > exec_return_type
Return type from function execution.
error_code
Error codes returned by agent operations.
@ retry
Transient error, execution should be retried.
@ rollback_error
Error during rollback.
@ commit_error
Error committing the function state updates.
@ function_execution
Error during function execution.
@ finish_error
Error finishing the ticket.
@ function_retrieval
Error retrieving function bytecode.
@ broker_unreachable
Broker was unreachable.
@ ticket_number_assignment
Ticket number assignment failed.
auto operator=(const interface &) -> interface &=delete
std::function< void(exec_return_type)> exec_callback_type
Callback function type with function execution result.
auto operator=(interface &&) -> interface &=delete
auto get_param() const -> parameter_type
Return the function parameter managed by this agent.
auto get_function() const -> runtime_locking_shard::key_type
Return the key of the function bytecode managed by this agent.
broker::state_update_type return_type
Type returned after function execution.
runtime_locking_shard::state_update_type state_update_type
Shard state updates type.
@ buffer
A singular RLP value (byte array)