Closed
Description
If Subscriber
is considered part of the SPI and never intended for use by the user, why is it exposed on Consumer
?
public Subscriber<T> getSubscriber();
In particular, what would be the point of ever retrieving it? There are no methods of use to invoke from a consumer perspective. In fact, if any are invoked they are now altering the data flow.
The javadoc states "This method should only be used by implementations of this API."
Since an implementation would have access to the concrete types and capable of getting this anyways it seems that it should not be on the Consumer
type where it will confuse and allow incorrect behavior.
Metadata
Metadata
Assignees
Labels
No labels