Package | Description |
---|---|
com.itstyle.seckill.common.entity | |
com.itstyle.seckill.service | |
com.itstyle.seckill.service.impl | |
com.itstyle.seckill.web |
Modifier and Type | Method and Description |
---|---|
static Result |
Result.error() |
static Result |
Result.error(int code,
String msg) |
static Result |
Result.error(Object msg) |
static Result |
Result.error(String msg) |
static Result |
Result.ok() |
static Result |
Result.ok(Map<String,Object> map) |
static Result |
Result.ok(Object msg) |
Result |
Result.put(String key,
Object value) |
Modifier and Type | Method and Description |
---|---|
Result |
ICreateHtmlService.createAllHtml() |
Result |
ISeckillService.startSeckil(long seckillId,
long userId)
秒杀 一、会出现数量错误
|
Result |
ISeckillService.startSeckilAopLock(long seckillId,
long userId)
秒杀 二、程序锁AOP
|
Result |
ISeckillService.startSeckilDBOCC(long seckillId,
long userId,
long number)
秒杀 三、数据库悲观锁
|
Result |
ISeckillService.startSeckilDBPCC_ONE(long seckillId,
long userId)
秒杀 二、数据库悲观锁
|
Result |
ISeckillService.startSeckilDBPCC_TWO(long seckillId,
long userId)
秒杀 三、数据库悲观锁
|
Result |
ISeckillService.startSeckilLock(long seckillId,
long userId)
秒杀 二、程序锁
|
Result |
ISeckillDistributedService.startSeckilLock(long seckillId,
long userId,
long number)
秒杀 二 多个商品
|
Result |
ISeckillDistributedService.startSeckilRedisLock(long seckillId,
long userId)
秒杀 一 单个商品
|
Result |
ISeckillDistributedService.startSeckilZksLock(long seckillId,
long userId)
秒杀 一 单个商品
|
Modifier and Type | Method and Description |
---|---|
Result |
CreateHtmlServiceImpl.createAllHtml() |
Result |
SeckillServiceImpl.startSeckil(long seckillId,
long userId) |
Result |
SeckillServiceImpl.startSeckilAopLock(long seckillId,
long userId) |
Result |
SeckillServiceImpl.startSeckilDBOCC(long seckillId,
long userId,
long number) |
Result |
SeckillServiceImpl.startSeckilDBPCC_ONE(long seckillId,
long userId) |
Result |
SeckillServiceImpl.startSeckilDBPCC_TWO(long seckillId,
long userId) |
Result |
SeckillServiceImpl.startSeckilLock(long seckillId,
long userId) |
Result |
SeckillDistributedServiceImpl.startSeckilLock(long seckillId,
long userId,
long number) |
Result |
SeckillDistributedServiceImpl.startSeckilRedisLock(long seckillId,
long userId) |
Result |
SeckillDistributedServiceImpl.startSeckilZksLock(long seckillId,
long userId) |
Modifier and Type | Method and Description |
---|---|
Result |
CreateHtmlController.start() |
Result |
SeckillController.start(long seckillId) |
Result |
SeckillController.startAopLock(long seckillId) |
Result |
SeckillController.startDBOCC(long seckillId) |
Result |
SeckillController.startDBPCC_ONE(long seckillId) |
Result |
SeckillController.startDisruptorQueue(long seckillId) |
Result |
SeckillController.startDPCC_TWO(long seckillId) |
Result |
SeckillDistributedController.startKafkaQueue(long seckillId) |
Result |
SeckillController.startLock(long seckillId) |
Result |
SeckillController.startQueue(long seckillId) |
Result |
SeckillDistributedController.startRedisLock(long seckillId) |
Result |
SeckillDistributedController.startRedisQueue(long seckillId) |
Result |
SeckillDistributedController.startZkLock(long seckillId) |
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.