activemq-flow: ISourceController and ISinkController interfaces should be 
updated to take use <?> Generics for increased flexibility
------------------------------------------------------------------------------------------------------------------------------------

                 Key: AMQ-2165
                 URL: https://issues.apache.org/activemq/browse/AMQ-2165
             Project: ActiveMQ
          Issue Type: Improvement
    Affects Versions: incubation
         Environment: N/A
            Reporter: Colin MacNaughton
            Priority: Minor
             Fix For: incubation


ISinkController and ISourceController's should pass wildcard generic versions 
of themselves to one another to increase flexibility of passing elements of 
common base types to one another:

ISinkController<E> should use:

public void add(E elem, ISourceController<?> controller); //instead of:  public 
void add(E elem, ISourceController<E> controller);
public void offer(E elem, ISourceController<?> controller); //instead of  
public void offer(E elem, ISourceController<E> controller);

and ISinkController<E> should use:
public void onFlowBlock(ISinkController<?> controller); //instead of public 
void onFlowBlock(ISinkController<E> controller)
public void onFlowResume(ISinkController<?> controller); //instead of public 
void onFlowResume(ISinkController<E> controller); //instead of

This allows for type conversions of elements between flow controllers.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to