Is there a better way to achieve this common requirement pattern in Apra Pipes ? #154
Unanswered
mraduldubey
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Often there is a requirement of overriding the base class (Module) behaviour depending on strategies of Detail class. Currently, our approach is to send the required method of the Module class as a lambda function to the
Detail
class constructor and override this function in concrete classes of Detail's strategy. Common examples aremakeFrame
andsend
methods. For eg. inMultimediaQueue
- the behaviour ofsend
changes based on state of the module (mState
).Is there a better way to do this ?
Beta Was this translation helpful? Give feedback.
All reactions