Closed agourlay closed 10 years ago
Using String for topic's name introduce ugly code and potential bugs due to lack of input validation.
Create a case class TopicPath that would contain a list of segments and a toString method to produce the printed version.
TopicPath
The topic name coming from spray interface should be validated and serialized into TopicPath as soon as possible.
All actors should then use TopicPath in their API and state.
Using String for topic's name introduce ugly code and potential bugs due to lack of input validation.
Create a case class
TopicPath
that would contain a list of segments and a toString method to produce the printed version.The topic name coming from spray interface should be validated and serialized into TopicPath as soon as possible.
All actors should then use TopicPath in their API and state.