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