Interface RequestSessionCache



  • public interface RequestSessionCache
    Cache for storing network results like ticket forms in memory.
    • Method Detail

      • updateTicketFormCache

        void updateTicketFormCache(java.util.List<TicketForm> ticketForms)
        Add a list of TicketForm to the cache.
        Parameters:
        ticketForms - a list of TicketForm
      • getTicketFormsById

        java.util.List<TicketForm> getTicketFormsById(java.util.List<java.lang.Long> ticketFormIds)
        Retrieve a list of cached TicketForm.
        Returns:
        a list of TicketForm or null 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