On Sat, Nov 10, 2018 at 11:14 AM Oleg Kalnichevski <[email protected]> wrote:

> On Sat, 2018-11-10 at 10:50 -0700, Gary Gregory wrote:
> > On Sat, Nov 10, 2018 at 10:38 AM Oleg Kalnichevski <[email protected]>
> > wrote:
> >
> > > On Sat, 2018-11-10 at 10:26 -0700, Gary Gregory wrote:
> > > > HI All:
> > > >
> > > > I am looking at the code path from from:
> > > >
> > > > org.apache.hc.core5.http.impl.bootstrap.HttpAsyncRequester.connec
> > > > t(Ht
> > > > tpHost,
> > > > Timeout, Object, FutureCallback<AsyncClientEndpoint>)
> > > >
> > > > down to:
> > > >
> > > > org.apache.hc.core5.http2.ssl.H2TlsSupport.enforceRequirements(Ob
> > > > ject
> > > > ,
> > > > SSLSessionInitializer)
> > > >
> > > > and I do not see why the Object parameter is not just simply
> > > > typed as
> > > > a HttpVersionPolicy.
> > > >
> > > > Thoughts?
> > > >
> > > > Gary
> > >
> > > Different connections may need to use different types of
> > > attachments.
> > >
> >
> > Any thought about using generics to type which kinds of connection
> > use
> > which kind of attachement?
> >
>
> It can really be any type of object, any useful bit of custom
> information. It is exactly the same principle (or problem) as with the
> attachment on SelectionKey
>
>
> https://docs.oracle.com/javase/7/docs/api/java/nio/channels/SelectionKey.html#attachment()


Got it, thank you for the pointer.

Gary


>
>
> Oleg
>
> > Gary
> >
> > >
> > > Oleg
> > >
> > >
> > > -----------------------------------------------------------------
> > > ----
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to