public class QueueServiceImpl<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>,T extends com.baomidou.mybatisplus.extension.activerecord.Model<T>>
extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
| Modifier and Type | Field and Description |
|---|---|
protected LinkedBlockingQueue<ModelWrapper<T>> |
queue |
| Constructor and Description |
|---|
QueueServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
T |
getById(Serializable id)
重写主键查询方法
|
void |
init()
子类初始化,每200毫秒发车一次,每次最多100个请求
|
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateByIdprotected LinkedBlockingQueue<ModelWrapper<T extends com.baomidou.mybatisplus.extension.activerecord.Model<T>>> queue
@PostConstruct public void init()
public T getById(Serializable id)
id - 主键IDCopyright © 2021. All rights reserved.