fix build warnings
This commit is contained in:
@@ -22,7 +22,6 @@ import org.springframework.integration.support.MessageBuilder;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.messaging.MessageChannel;
|
||||
import org.springframework.messaging.support.ChannelInterceptor;
|
||||
import org.springframework.messaging.support.ChannelInterceptorAdapter;
|
||||
|
||||
/**
|
||||
* A {@link ChannelInterceptor} that adds the current {@link StepExecution} (if
|
||||
@@ -34,7 +33,7 @@ import org.springframework.messaging.support.ChannelInterceptorAdapter;
|
||||
* @author Dave Syer
|
||||
*
|
||||
*/
|
||||
public class StepExecutionInterceptor extends ChannelInterceptorAdapter {
|
||||
public class StepExecutionInterceptor implements ChannelInterceptor {
|
||||
|
||||
/**
|
||||
* The name of the header
|
||||
|
||||
@@ -7,7 +7,6 @@ import org.springframework.integration.core.MessageSource;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.messaging.MessageChannel;
|
||||
import org.springframework.messaging.support.ChannelInterceptor;
|
||||
import org.springframework.messaging.support.ChannelInterceptorAdapter;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
|
||||
@@ -20,7 +19,7 @@ import org.springframework.util.Assert;
|
||||
* @author Dave Syer
|
||||
*
|
||||
*/
|
||||
public class MessageSourcePollerInterceptor extends ChannelInterceptorAdapter implements InitializingBean {
|
||||
public class MessageSourcePollerInterceptor implements ChannelInterceptor, InitializingBean {
|
||||
|
||||
private static Log logger = LogFactory.getLog(MessageSourcePollerInterceptor.class);
|
||||
|
||||
@@ -70,7 +69,7 @@ public class MessageSourcePollerInterceptor extends ChannelInterceptorAdapter im
|
||||
* Receive from the {@link MessageSource} and send immediately to the input channel, so that the call that we are
|
||||
* intercepting always a message to receive.
|
||||
*
|
||||
* @see ChannelInterceptorAdapter#preReceive(MessageChannel)
|
||||
* @see ChannelInterceptor#preReceive(MessageChannel)
|
||||
*/
|
||||
@Override
|
||||
public boolean preReceive(MessageChannel channel) {
|
||||
|
||||
@@ -139,6 +139,7 @@ public class RemoteChunkingMasterStepBuilder<I, O> extends FaultTolerantStepBuil
|
||||
* slow workers time to finish, and responsiveness if there is a dead worker. Defaults to 40.
|
||||
*
|
||||
* @param maxWaitTimeouts the maximum number of wait timeouts
|
||||
* @return this builder instance for fluent chaining
|
||||
* @see ChunkMessageChannelItemWriter#setMaxWaitTimeouts(int)
|
||||
*/
|
||||
public RemoteChunkingMasterStepBuilder<I, O> maxWaitTimeouts(int maxWaitTimeouts) {
|
||||
@@ -152,6 +153,7 @@ public class RemoteChunkingMasterStepBuilder<I, O> extends FaultTolerantStepBuil
|
||||
* overwhelming the receivers.
|
||||
*
|
||||
* @param throttleLimit the throttle limit to set
|
||||
* @return this builder instance for fluent chaining
|
||||
* @see ChunkMessageChannelItemWriter#setThrottleLimit(long)
|
||||
*/
|
||||
public RemoteChunkingMasterStepBuilder<I, O> throttleLimit(long throttleLimit) {
|
||||
|
||||
@@ -50,6 +50,8 @@ public class RemoteChunkingMasterStepBuilderFactory {
|
||||
* repository and transaction manager.
|
||||
*
|
||||
* @param name the name of the step
|
||||
* @param <I> type of input items
|
||||
* @param <O> type of output items
|
||||
* @return a {@link RemoteChunkingMasterStepBuilder}
|
||||
*/
|
||||
public <I, O> RemoteChunkingMasterStepBuilder<I, O> get(String name) {
|
||||
|
||||
@@ -108,6 +108,7 @@ public class RemoteChunkingWorkerBuilder<I, O> {
|
||||
*
|
||||
* @return the integration flow
|
||||
*/
|
||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||
public IntegrationFlow build() {
|
||||
Assert.notNull(this.itemWriter, "An ItemWriter must be provided");
|
||||
Assert.notNull(this.inputChannel, "An InputChannel must be provided");
|
||||
|
||||
Reference in New Issue
Block a user