org.enodeframework.messaging.impl.DoNothingPublisher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enode Show documentation
Show all versions of enode Show documentation
The enodeframework core implementation.
package org.enodeframework.messaging.impl;
import org.enodeframework.messaging.IMessage;
import org.enodeframework.messaging.IMessagePublisher;
import java.util.concurrent.CompletableFuture;
/**
* @author [email protected]
*/
public class DoNothingPublisher implements IMessagePublisher {
private static final CompletableFuture SUCCESSRESULTTASK = CompletableFuture.completedFuture(null);
@Override
public CompletableFuture publishAsync(TMessage message) {
return SUCCESSRESULTTASK;
}
}