Package com.zendesk.sdk.storage
Interface RequestSessionCache
-
public interface RequestSessionCache
Cache for storing network results like ticket forms in memory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description boolean
containsAllTicketForms(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
.void
updateTicketFormCache(java.util.List<TicketForm> ticketForms)
Add a list ofTicketForm
to the cache.
-
-
-
Method Detail
-
updateTicketFormCache
void updateTicketFormCache(java.util.List<TicketForm> ticketForms)
Add a list ofTicketForm
to 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
TicketForm
ornull
if 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:
true
if the ticket form ids are available in cache,false
if not
-
-