Class RedissonCachedListingService
- java.lang.Object
-
- 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>
-
- org.oxerr.seatgeek.client.cached.redisson.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 voidcreateListing(org.oxerr.seatgeek.client.cached.model.SeatGeekEvent event, org.oxerr.seatgeek.client.cached.model.SeatGeekListing listing)protected voiddeleteListing(org.oxerr.seatgeek.client.cached.model.SeatGeekEvent event, String ticketId)protected SeatGeekCachedListingtoCached(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
-
-
-
-
Constructor Detail
-
RedissonCachedListingService
public RedissonCachedListingService(org.oxerr.seatgeek.client.ListingService listingService, org.redisson.api.RedissonClient redissonClient, String keyPrefix, boolean create)
-
-
Method Detail
-
deleteListing
protected void deleteListing(org.oxerr.seatgeek.client.cached.model.SeatGeekEvent event, String ticketId) throws IOException- Specified by:
deleteListingin classorg.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:
createListingin classorg.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:
toCachedin classorg.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>
-
-