Skip to content

Commit

Permalink
refactor: DistributedLock Repository -> Manager 폴더명 변경 (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Jan 2, 2025
1 parent 934722e commit 346cb65
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.common.base.Lockable;
import com.common.exception.ApiException;
import com.common.exception.ErrorType;
import com.infrastructure.distribution.repository.DistributedLockManager;
import com.infrastructure.distribution.manager.DistributedLockManager;
import java.lang.reflect.Method;
import java.util.Arrays;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.infrastructure.distribution.repository;
package com.infrastructure.distribution.manager;

public interface DistributedLockManager {
boolean tryLock(String key, long waitTime, long leaseTime);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.infrastructure.distribution.repository;
package com.infrastructure.distribution.manager;

import java.util.Map;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.infrastructure.distribution.repository;
package com.infrastructure.distribution.manager;

import java.util.concurrent.TimeUnit;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.infrastructure.distribution.service;

import com.infrastructure.distribution.repository.DistributedLockManager;
import com.infrastructure.distribution.repository.LocalLockManager;
import com.infrastructure.distribution.repository.RedissonLockManager;
import com.infrastructure.distribution.manager.DistributedLockManager;
import com.infrastructure.distribution.manager.LocalLockManager;
import com.infrastructure.distribution.manager.RedissonLockManager;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.infrastructure.distribution.service;

import com.infrastructure.distribution.repository.LocalLockManager;
import com.infrastructure.distribution.repository.RedissonLockManager;
import com.infrastructure.distribution.manager.LocalLockManager;
import com.infrastructure.distribution.manager.RedissonLockManager;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
Expand Down

0 comments on commit 346cb65

Please sign in to comment.