feat(1.5.0-beta1-jdk8): 同步1.5.0-beta1代码,并兼容 jdk8
This commit is contained in:
parent
ab73443ee9
commit
c991cb1e04
@ -1,8 +1,9 @@
|
||||
package com.aizuda.snailjob.client.core.dto;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class RequestTriggerRetryDTO {
|
||||
@NotNull(message = "id cannot be null")
|
||||
|
@ -1,8 +1,9 @@
|
||||
package com.aizuda.snailjob.client.core.dto;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class RequestUpdateRetryStatusDTO {
|
||||
@NotNull(message = "id cannot be null")
|
||||
|
@ -59,7 +59,7 @@ public class RetrySiteSnapshot {
|
||||
private static final RetrySiteSnapshotContext<Long> ENTRY_METHOD_TIME = SnailRetrySpiLoader.loadRetrySiteSnapshotContext();
|
||||
|
||||
public static void suspend() {
|
||||
SUSPEND.set(new HashMap<>(){{
|
||||
SUSPEND.set(new HashMap<String, Object>(){{
|
||||
put(RETRY_STAGE_KEY, RETRY_STAGE.get());
|
||||
put(RETRY_STATUS_KEY, RETRY_STATUS.get());
|
||||
put(RETRY_CLASS_METHOD_ENTRANCE_KEY, RETRY_CLASS_METHOD_ENTRANCE.get());
|
||||
|
@ -86,7 +86,7 @@ public class RemoteRetryStrategies extends AbstractRetryStrategies {
|
||||
|
||||
@Override
|
||||
protected RetryExecutorParameter<WaitStrategy, StopStrategy> getRetryExecutorParameter(RetryerInfo retryerInfo) {
|
||||
return new RetryExecutorParameter<>() {
|
||||
return new RetryExecutorParameter<WaitStrategy, StopStrategy>() {
|
||||
|
||||
@Override
|
||||
public WaitStrategy backOff() {
|
||||
|
Loading…
Reference in New Issue
Block a user