On Mon, 2018-08-06 at 07:40 -0600, Gary Gregory wrote:
> >
> > <snip>
> > +
> > +abstract class AbstractIOReactorBase implements
> > ConnectionInitiator {
> > +
> > <snip> + public abstract void initiateShutdown();
> >
> >
>
> Hi All,
>
> I am wondering about this method name (since Javadoc is in progress)
>
> To my mind, seeing a method called initiateSomething() implies that I
> have
> to call another method called completeSomething() at some point after
> that.
>
> If the the method call actually ends up performing a complete
> shutdown but
> is asynchronous, wouldn't calling it shutdown() be better? IIRC,
> when we
> start a server asynchronously we call start(), not initiateStart().
>
> Thoughts?
>
> Gary
Hi Gary
Please take a look at the IOReactor interface. It has #initiateShutdown
and #awaitShutdown method pair.
AbstractIOReactorBase is an internal class. It exists for code re-use.
It does not need to have a consistent public API.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]