All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.xream.reliable.remote.reliable.FailedServiceRemote Maven / Gradle / Ivy

There is a newer version: 1.2.0.RELEASE
Show newest version
package io.xream.reliable.remote.reliable;

import io.xream.reliable.bean.entity.ReliableMessage;
import io.xream.x7.reyc.ReyClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@ReyClient("http://${reliable.app}/failed" )
public interface FailedServiceRemote {


    @RequestMapping(value = "/find", method = RequestMethod.GET)
    List findFailed();

    @RequestMapping(value = "/find/{topic}", method = RequestMethod.GET)
    List findFailedByTopic();

    @RequestMapping(value = "/retryAll", method = RequestMethod.GET)
    boolean retryAll();

    @RequestMapping(value = "/retry/{messageId}", method = RequestMethod.GET)
    boolean retry(String messageId);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy