Class RedissonCachedListingService

  • All Implemented Interfaces:
    org.oxerr.seatgeek.client.cached.CachedSeatGeekListingService, org.oxerr.ticket.inventory.support.cached.CachedListingService<String,​String,​org.oxerr.seatgeek.client.model.request.CreateListingRequest,​org.oxerr.seatgeek.client.cached.model.SeatGeekListing,​org.oxerr.seatgeek.client.cached.model.SeatGeekEvent>

    public class RedissonCachedListingService
    extends org.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,​String,​org.oxerr.seatgeek.client.model.request.CreateListingRequest,​org.oxerr.seatgeek.client.cached.model.SeatGeekListing,​org.oxerr.seatgeek.client.cached.model.SeatGeekEvent,​SeatGeekCachedListing>
    implements org.oxerr.seatgeek.client.cached.CachedSeatGeekListingService
    • Constructor Summary

      Constructors 
      Constructor Description
      RedissonCachedListingService​(org.oxerr.seatgeek.client.ListingService listingService, org.redisson.api.RedissonClient redissonClient, String keyPrefix, boolean create)  
      RedissonCachedListingService​(org.oxerr.seatgeek.client.ListingService listingService, org.redisson.api.RedissonClient redissonClient, String keyPrefix, Executor executor, boolean create)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createListing​(org.oxerr.seatgeek.client.cached.model.SeatGeekEvent event, org.oxerr.seatgeek.client.cached.model.SeatGeekListing listing)  
      protected void deleteListing​(org.oxerr.seatgeek.client.cached.model.SeatGeekEvent event, String ticketId)  
      protected SeatGeekCachedListing toCached​(org.oxerr.seatgeek.client.cached.model.SeatGeekEvent event, org.oxerr.seatgeek.client.cached.model.SeatGeekListing listing, org.oxerr.ticket.inventory.support.cached.redisson.Status status)  
      • Methods inherited from class org.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport

        cacheEndDate, cacheSize, createListingAsync, deleteListingAsync, getListingCache, listedCount, shouldCreate, shouldDelete, updateListings
      • Methods inherited from interface org.oxerr.ticket.inventory.support.cached.CachedListingService

        cacheSize, listedCount, updateListings
    • Constructor Detail

      • RedissonCachedListingService

        public RedissonCachedListingService​(org.oxerr.seatgeek.client.ListingService listingService,
                                            org.redisson.api.RedissonClient redissonClient,
                                            String keyPrefix,
                                            boolean create)
      • RedissonCachedListingService

        public RedissonCachedListingService​(org.oxerr.seatgeek.client.ListingService listingService,
                                            org.redisson.api.RedissonClient redissonClient,
                                            String keyPrefix,
                                            Executor executor,
                                            boolean create)
    • Method Detail

      • deleteListing

        protected void deleteListing​(org.oxerr.seatgeek.client.cached.model.SeatGeekEvent event,
                                     String ticketId)
                              throws IOException
        Specified by:
        deleteListing in class org.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,​String,​org.oxerr.seatgeek.client.model.request.CreateListingRequest,​org.oxerr.seatgeek.client.cached.model.SeatGeekListing,​org.oxerr.seatgeek.client.cached.model.SeatGeekEvent,​SeatGeekCachedListing>
        Throws:
        IOException
      • createListing

        protected void createListing​(org.oxerr.seatgeek.client.cached.model.SeatGeekEvent event,
                                     org.oxerr.seatgeek.client.cached.model.SeatGeekListing listing)
                              throws IOException
        Specified by:
        createListing in class org.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,​String,​org.oxerr.seatgeek.client.model.request.CreateListingRequest,​org.oxerr.seatgeek.client.cached.model.SeatGeekListing,​org.oxerr.seatgeek.client.cached.model.SeatGeekEvent,​SeatGeekCachedListing>
        Throws:
        IOException
      • toCached

        protected SeatGeekCachedListing toCached​(org.oxerr.seatgeek.client.cached.model.SeatGeekEvent event,
                                                 org.oxerr.seatgeek.client.cached.model.SeatGeekListing listing,
                                                 org.oxerr.ticket.inventory.support.cached.redisson.Status status)
        Specified by:
        toCached in class org.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,​String,​org.oxerr.seatgeek.client.model.request.CreateListingRequest,​org.oxerr.seatgeek.client.cached.model.SeatGeekListing,​org.oxerr.seatgeek.client.cached.model.SeatGeekEvent,​SeatGeekCachedListing>