Class RedissonCachedListingService
java.lang.Object
org.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,String,org.oxerr.seatgeek.client.model.request.CreateListingRequest,SeatGeekListing,SeatGeekEvent,SeatGeekCachedListing>
org.oxerr.seatgeek.client.cached.redisson.RedissonCachedListingService
- All Implemented Interfaces:
CachedSeatGeekListingService,org.oxerr.ticket.inventory.support.cached.CachedListingService<String,String, org.oxerr.seatgeek.client.model.request.CreateListingRequest, SeatGeekListing, SeatGeekEvent>
public class RedissonCachedListingService
extends org.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,String,org.oxerr.seatgeek.client.model.request.CreateListingRequest,SeatGeekListing,SeatGeekEvent,SeatGeekCachedListing>
implements CachedSeatGeekListingService
-
Constructor Summary
ConstructorsConstructorDescriptionRedissonCachedListingService(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
Modifier and TypeMethodDescriptionprotected voidcreateListing(SeatGeekEvent event, SeatGeekListing listing) protected voiddeleteListing(SeatGeekEvent event, String ticketId) protected SeatGeekCachedListingtoCached(SeatGeekEvent event, 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, updateListingsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.oxerr.ticket.inventory.support.cached.CachedListingService
cacheSize, listedCount, updateListings
-
Constructor Details
-
RedissonCachedListingService
public RedissonCachedListingService(org.oxerr.seatgeek.client.ListingService listingService, org.redisson.api.RedissonClient redissonClient, String keyPrefix, boolean create) -
RedissonCachedListingService
-
-
Method Details
-
deleteListing
- Specified by:
deleteListingin classorg.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,String, org.oxerr.seatgeek.client.model.request.CreateListingRequest, SeatGeekListing, SeatGeekEvent, SeatGeekCachedListing> - Throws:
IOException
-
createListing
- Specified by:
createListingin classorg.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,String, org.oxerr.seatgeek.client.model.request.CreateListingRequest, SeatGeekListing, SeatGeekEvent, SeatGeekCachedListing> - Throws:
IOException
-
toCached
protected SeatGeekCachedListing toCached(SeatGeekEvent event, 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, SeatGeekListing, SeatGeekEvent, SeatGeekCachedListing>
-