scala - Subclassing an Akka Agent -
i create subclass of akka.agent.agent. have tried following...
import akka.agent.agent import markets.tickers.tick class tickeragent(val initialvalue: tick) extends agent[tick] { ??? } ...at point prompted implement remaining methods of abstract agent class. however, want keep default implementations these methods. seem source default implementations defined in final, private secretagent class inside agent companion object.
is there anyway me somehow import or otherwise access default agent when implementing subclass of agent?
according knowledge, there no other way except implementing abstract methods defined agent[t] class. can call default methods inside methods implementation.
Comments
Post a Comment