Consider a following Akka actor. Implemententations of this actor should
need to overrule and exercise handleMessage(message: T). This doing should
call executeQueryLookup on the final lineabstract category
BaseQueryLookupActor[T, U] extends Actor { def accept = { box message:
T => handleMessage(message) box summary => unhandled(message) } def
handleMessage(message: T) // Abstract slight def
executeQueryLookup(cacheName: String, queryName: String, params:
Map[String, String]) { // Concrete slight that contains query
explanation }}I comprehend there are churned ways to grasp this but
controlling any Scala organic concepts, though I'm pondering that it is
also illusory to grasp this somehow controlling a biased duty or currying.
If so, how would we grasp this?
No comments:
Post a Comment