Reuse connections to service
CServiceAdapter
currently instantiates a new HttpClient
upon every call to connect()
, getObject()
, updateObject()
and delete()
.
These connections are never reused. They should be either:
- kept and reused as part of a
CServiceAdapter
instance; see #38 - kept in a map and reused (flyweight pattern)