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
ConstructorDescriptionRedissonCachedListingService
(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 void
createListing
(SeatGeekEvent event, SeatGeekListing listing) protected void
deleteListing
(SeatGeekEvent event, String ticketId) protected SeatGeekCachedListing
toCached
(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, updateListings
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
deleteListing
in 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:
createListing
in 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:
toCached
in classorg.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,
String, org.oxerr.seatgeek.client.model.request.CreateListingRequest, SeatGeekListing, SeatGeekEvent, SeatGeekCachedListing>
-