Closed smaldini closed 8 years ago
For the context, I was thinking about Reactor Bus, a specific routing component I'd like to plug into partitioning operators from Stream and RSC in general :)
Eventually the simple alternative is to just provide a Supplier
of Map
.
Question closed for now, GroupBy doesn't seem suited for this.
Currently GroupBy uses a Map to store grouped sequence references. We probably use 4 interactions with Map that could be eventually translated as many
java.util.function
orjava.lang
callbacks. The reason is that some repository might actually offer more refined strategies to create and fetch group references. We could use a pooled registry of groups for instance, attach some behavior to a fresh group (timeout) or just increase our route resolution possibilities.