251222_01_DOC : 중괄호 스타일 통일
This commit is contained in:
@@ -5,7 +5,7 @@ import java.time.Duration;
|
||||
|
||||
public class RedisQueueHelper {
|
||||
private final StringRedisTemplate rt;
|
||||
public RedisQueueHelper(StringRedisTemplate rt){ this.rt = rt; }
|
||||
public void enqueue(String key, String value){ rt.opsForList().rightPush(key, value); }
|
||||
public String blockingDequeue(String key, Duration timeout){ return rt.opsForList().leftPop(key, timeout); }
|
||||
public RedisQueueHelper(StringRedisTemplate rt) { this.rt = rt; }
|
||||
public void enqueue(String key, String value) { rt.opsForList().rightPush(key, value); }
|
||||
public String blockingDequeue(String key, Duration timeout) { return rt.opsForList().leftPop(key, timeout); }
|
||||
}
|
||||
@@ -92,9 +92,9 @@ public class BusinessException extends RuntimeException {
|
||||
return internalError("INTERNAL_SERVER_ERROR", message);
|
||||
}
|
||||
|
||||
public HttpStatus getStatus(){ return status; }
|
||||
public String getCode(){ return code; }
|
||||
public Map<String, Object> getExtras(){ return extras; }
|
||||
public HttpStatus getStatus() { return status; }
|
||||
public String getCode() { return code; }
|
||||
public Map<String, Object> getExtras() { return extras; }
|
||||
|
||||
/** 편의: 체이닝으로 extras 추가 */
|
||||
public BusinessException with(String key, Object value) {
|
||||
|
||||
Reference in New Issue
Block a user