Closed uklance closed 12 years ago
Instead of storing topic as a string, it should be stored as a proper immutable object (complete with hashCode() and equals()).
It should store a String[] of all matching patterns to lookup channels
eg: for "/chat/cars" is should store
I don't think I'll implement this. On consideration, it saves us nothing. The string array is only needed when messages are broadcast and this will be required either way.
Instead of storing topic as a string, it should be stored as a proper immutable object (complete with hashCode() and equals()).
It should store a String[] of all matching patterns to lookup channels
eg: for "/chat/cars" is should store