Class RedissonCachedListingService
java.lang.Object
org.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,String,CreateListingRequest,SeatGeekListing,SeatGeekEvent,SeatGeekCachedListing>
org.oxerr.seatgeek.client.cached.redisson.RedissonCachedListingService
- All Implemented Interfaces:
CachedSeatGeekListingService
,org.oxerr.ticket.inventory.support.cached.CachedListingService<String,
String, CreateListingRequest, SeatGeekListing, SeatGeekEvent>
public class RedissonCachedListingService
extends org.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,String,CreateListingRequest,SeatGeekListing,SeatGeekEvent,SeatGeekCachedListing>
implements CachedSeatGeekListingService
-
Constructor Summary
ConstructorDescriptionRedissonCachedListingService
(ListingService listingService, org.redisson.api.RedissonClient redissonClient, String keyPrefix, boolean create) RedissonCachedListingService
(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(ListingService listingService, org.redisson.api.RedissonClient redissonClient, String keyPrefix, boolean create) -
RedissonCachedListingService
public RedissonCachedListingService(ListingService listingService, org.redisson.api.RedissonClient redissonClient, String keyPrefix, Executor executor, boolean create)
-
-
Method Details
-
deleteListing
- Specified by:
deleteListing
in classorg.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,
String, CreateListingRequest, SeatGeekListing, SeatGeekEvent, SeatGeekCachedListing> - Throws:
IOException
-
createListing
- Specified by:
createListing
in classorg.oxerr.ticket.inventory.support.cached.redisson.RedissonCachedListingServiceSupport<String,
String, 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, CreateListingRequest, SeatGeekListing, SeatGeekEvent, SeatGeekCachedListing>
-