You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We to provide a EtagCache interface, because every user should be able to create hers own implementation. The current EtagCache implementation (SoftHashMap) is the default.
The text was updated successfully, but these errors were encountered:
The solution we implemented works with the Supplier interface. It is possible to override the "MapSupplier" before creating the EtagWebRequestor.
Normally you can create the ETagWebRequestor simply by calling the constructor (new ETagWebRequestor());
Now, it is possible to set the supplier first and create the ETagWebRequestor afterwards with the new mp implementation. Important is that the supplier needs to implement the Map interface.
For example like this:
ETagWebRequestor.setMapSupplier(HashMap::new);
ETagWebRequestor requestor = new ETagWebRequestor();
We to provide a EtagCache interface, because every user should be able to create hers own implementation. The current EtagCache implementation (SoftHashMap) is the default.
The text was updated successfully, but these errors were encountered: