If I were you I would create final field for the client (if it is serializable)
On Fri, Jul 22, 2016 at 8:08 PM, Ankush Mishra <[email protected]> wrote: > Hey Maxim, Sebastian, > > Just a small thing, should I keep the HTTPClient object in the memory for > the whole page until say, the CalendarPanel is removed or should I just > have the client for the period of the syncing? > > Keeping the Client until would store the credentials in the memory for > that period. So, the initial sync would require the user to enter the > credentials, but for the subsequent syncs, the credentials don't need to be > entered. But, if we don't then the credentials would be required to be > entered multiple times while the Panel is open, but the credentials would > not reside in the memory. > > > -- > Ankush Mishra > > -- WBR Maxim aka solomax
