aleph

rborer 2018-12-11T08:45:30.033600Z

right, I'll send an email to aleph google groups so his answer is saved for posterity (on Slack the information will disappear after a few days, and on Twitter, well, it's not the most easily searchable 😉 )

valerauko 2018-12-11T15:32:29.034Z

is there a representation of aleph that implements CloseableHttpClient?

valerauko 2018-12-11T15:32:45.034400Z

i'd need to pass an object like that to another java lib

kachayev 2018-12-11T20:38:14.037400Z

@vale Do you mean aleph http client? server object implements Closeable, but for the client it’s a bit different… there’s actually no such thing as “client”. you have a connection pool (created by you or default one) which is represented as flow/instrumented-pool. you can probably try to extract a list of open connections to close them when necessary

valerauko 2018-12-15T04:58:10.042300Z

i'm not sure if i actually need to close them either... there's a library that uses the apache commons http client internally, but if possible i'd prefer not to have another http dependency if i can just use aleph already.

kachayev 2018-12-15T12:57:15.042800Z

Oh…

kachayev 2018-12-15T12:59:28.043Z

In that case you need not simply Closable, you need an instance of https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/CloseableHttpClient.html (or an instance of subclass). You can use reify to define execute methods, but as far as I understand… all of those methods are supposed to be blocking, right?

valerauko 2018-12-16T08:16:11.043200Z

possibly so

kachayev 2018-12-16T20:18:50.043900Z

In that case you probably won’t see any advantages of using Aleph