EsHiredisCallEngine
Description
An abstract superclass that defines the strategy for executing Foreign Function Interface (FFI) calls into the native hiredis C library. This class provides a common interface for different calling mechanisms, such as synchronous (blocking) and asynchronous (non-blocking).
This abstraction allows the Redis client to seamlessly switch between execution strategies without changing the higher-level code. This class is not intended to be instantiated directly.
Class Variables
Class Methods
new
Answer a new instance of this call engine.
Answers:
<HiredisCallEngine>
Instance Methods
call:
Perform a 0-argument call.
This is a template method that must be implemented by subclasses.
Arguments:
aPlatformFunction - <PlatformFunction> The function to execute.
Answers:
<Object> The result of the platform function call.
Raises:
<SubclassResponsibility>
call:with:
Perform a 1-argument call.
This is a template method that must be implemented by subclasses.
Arguments:
aPlatformFunction - <PlatformFunction> The function to execute.
arg1 - <Object> The argument for the function.
Answers:
<Object> The result of the platform function call.
Raises:
<SubclassResponsibility>
call:with:with:
Perform a 2-argument call.
This is a template method that must be implemented by subclasses.
Arguments:
aPlatformFunction - <PlatformFunction> The function to execute.
arg1 - <Object> The first argument for the function.
arg2 - <Object> The second argument for the function.
Answers:
<Object> The result of the platform function call.
Raises:
<SubclassResponsibility>
call:with:with:with:
Perform a 3-argument call.
This is a template method that must be implemented by subclasses.
Arguments:
aPlatformFunction - <PlatformFunction> The function to execute.
arg1 - <Object> The first argument for the function.
arg2 - <Object> The second argument for the function.
arg3 - <Object> The third argument for the function.
Answers:
<Object> The result of the platform function call.
Raises:
<SubclassResponsibility>
call:with:with:with:with:
Perform a 4-argument call.
This is a template method that must be implemented by subclasses.
Arguments:
aPlatformFunction - <PlatformFunction> The function to execute.
arg1 - <Object> The first argument for the function.
arg2 - <Object> The second argument for the function.
arg3 - <Object> The third argument for the function.
arg4 - <Object> The fourth argument for the function.
Answers:
<Object> The result of the platform function call.
Raises:
<SubclassResponsibility>
Last modified date: 01/22/2026