public class RemoteFileDeletingAdvice extends Object implements org.springframework.integration.aop.MessageSourceMutator
MessageSourceMutator
that deletes a remote file on success.Constructor and Description |
---|
RemoteFileDeletingAdvice(org.springframework.integration.file.remote.RemoteFileTemplate<?> template,
String remoteFileSeparator)
Construct an instance with the provided template and separator.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.messaging.Message<?> |
afterReceive(org.springframework.messaging.Message<?> result,
org.springframework.integration.core.MessageSource<?> source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RemoteFileDeletingAdvice(org.springframework.integration.file.remote.RemoteFileTemplate<?> template, String remoteFileSeparator)
template
- the template.remoteFileSeparator
- the separator.@Nullable public org.springframework.messaging.Message<?> afterReceive(@Nullable org.springframework.messaging.Message<?> result, org.springframework.integration.core.MessageSource<?> source)
afterReceive
in interface org.springframework.integration.aop.MessageSourceMutator
Copyright © 2022. All rights reserved.