software.amazon.aws.clients.swf.flux.poller.signals.ScheduleDelayedRetrySignalData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flux Show documentation
Show all versions of flux Show documentation
Flux is a client library that simplifies usage of Amazon Simple Workflow Service.
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package software.amazon.aws.clients.swf.flux.poller.signals;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* Stores the data related to a ScheduleDelayedRetry signal.
* This is effectively a hack signal to arrange events so that the decision to reschedule the retry timer
* is made in a separate decision task than the decision that cancels the old retry timer.
*/
public class ScheduleDelayedRetrySignalData extends DelayRetrySignalData {
@JsonCreator
public ScheduleDelayedRetrySignalData() {
}
public ScheduleDelayedRetrySignalData(DelayRetrySignalData originalSignalData) {
this.setActivityId(originalSignalData.getActivityId());
this.setDelayInSeconds(originalSignalData.getDelayInSeconds());
}
@Override
@JsonIgnore
public SignalType getSignalType() {
return SignalType.SCHEDULE_DELAYED_RETRY;
}
@Override
public boolean isValidSignalInput() {
return super.isValidSignalInput();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy