Package com.zendesk.sdk.storage
Interface RequestSessionCache
-
public interface RequestSessionCacheCache for storing network results like ticket forms in memory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleancontainsAllTicketForms(java.util.List<java.lang.Long> ticketFormIds)Query the cache if stored ids are available.java.util.List<TicketForm>getTicketFormsById(java.util.List<java.lang.Long> ticketFormIds)Retrieve a list of cachedTicketForm.voidupdateTicketFormCache(java.util.List<TicketForm> ticketForms)Add a list ofTicketFormto the cache.
-
-
-
Method Detail
-
updateTicketFormCache
void updateTicketFormCache(java.util.List<TicketForm> ticketForms)
Add a list ofTicketFormto the cache.- Parameters:
ticketForms- a list ofTicketForm
-
getTicketFormsById
java.util.List<TicketForm> getTicketFormsById(java.util.List<java.lang.Long> ticketFormIds)
Retrieve a list of cachedTicketForm.- Returns:
- a list of
TicketFormornullif the cache is empty.
-
containsAllTicketForms
boolean containsAllTicketForms(java.util.List<java.lang.Long> ticketFormIds)
Query the cache if stored ids are available.- Parameters:
ticketFormIds- list of ticket form ids (TicketForm.getId())- Returns:
trueif the ticket form ids are available in cache,falseif not
-
-