Skip to content

Commit

Permalink
#255 [CHORE] 메서드명 prefix 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseul106 committed Jul 2, 2024
1 parent c0ce999 commit 3c083a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class AlarmServiceImpl implements AlarmService {
public void sendInstantAlarm(AlarmInstantSendRequest request) {
val savedAlarm = alarmRepository.save(request.toEntity());
val targets = getTargets(savedAlarm);
alarmManager.postInstantAlarm(AlarmSenderRequest.of(savedAlarm, targets));
alarmManager.sendInstantAlarm(AlarmSenderRequest.of(savedAlarm, targets));
savedAlarm.updateToSent(formatSendAt(LocalDateTime.now()));
}

Expand All @@ -73,7 +73,7 @@ public void sendScheduleAlarm(AlarmScheduleSendRequest request) {
webLink
);

alarmManager.postReservedAlarm(eventBridgeRequest, request.postDate(), request.postTime(), savedAlarm.getId());
alarmManager.sendReservedAlarm(eventBridgeRequest, request.postDate(), request.postTime(), savedAlarm.getId());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public class AlarmManager {
private final AlarmSenderImpl alarmSender;
private final EventBridgeSenderImpl eventBridgeSender;

public void postInstantAlarm(AlarmSenderRequest request) {
public void sendInstantAlarm(AlarmSenderRequest request) {
alarmSender.send(request);
}

public void postReservedAlarm(EventBridgeSenderRequest request, String postDate, String postTime, Long alarmId) {
public void sendReservedAlarm(EventBridgeSenderRequest request, String postDate, String postTime, Long alarmId) {
eventBridgeSender.scheduleAlarm(request, postDate, postTime, alarmId);
}
}

0 comments on commit 3c083a2

Please sign in to comment.