rename
This commit is contained in:
parent
d4af873190
commit
51fe42ec05
|
@ -61,7 +61,7 @@ public class KSActionsImpl implements KSActions {
|
||||||
return fetchChildListAsync().thenCombine(fetchTaskListAsync(), (childListResponse, taskListResponse) -> {
|
return fetchChildListAsync().thenCombine(fetchTaskListAsync(), (childListResponse, taskListResponse) -> {
|
||||||
Thread cacheThread = new Thread(() -> {
|
Thread cacheThread = new Thread(() -> {
|
||||||
logger.debug("キャッシュ更新スレッド開始(スレッドID: " + Thread.currentThread().getId() + ")");
|
logger.debug("キャッシュ更新スレッド開始(スレッドID: " + Thread.currentThread().getId() + ")");
|
||||||
cacheWrapper.updateCache(ChildModelConverter.childListResponseToChildModelList(childListResponse),
|
cacheWrapper.updateChildTaskCache(ChildModelConverter.childListResponseToChildModelList(childListResponse),
|
||||||
TaskModelConverter.taskListResponseToTaskItemModelList(taskListResponse)).join();
|
TaskModelConverter.taskListResponseToTaskItemModelList(taskListResponse)).join();
|
||||||
logger.info("キャッシュ更新完了");
|
logger.info("キャッシュ更新完了");
|
||||||
});
|
});
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class CacheWrapper {
|
||||||
* @param taskList タスクリスト
|
* @param taskList タスクリスト
|
||||||
* @return CompletableFuture
|
* @return CompletableFuture
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Void> updateCache(List<ChildModel> childList, List<TaskItemModel> taskList) {
|
public CompletableFuture<Void> updateChildTaskCache(List<ChildModel> childList, List<TaskItemModel> taskList) {
|
||||||
return CompletableFuture.runAsync(() -> {
|
return CompletableFuture.runAsync(() -> {
|
||||||
logger.debug("Updating cache");
|
logger.debug("Updating cache");
|
||||||
insertChildList(childList).join();
|
insertChildList(childList).join();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user