package org.example.seed.service;

import org.example.seed.event.chef.*;

import java.util.concurrent.Future;

/**
 * Created by PINA on 15/06/2017.
 */
public interface ChefService {

    Future<CatalogChefEvent> requestChefs(final RequestAllChefEvent event);

    Future<ResponseChefEvent> createChef(final CreateChefEvent event);

    Future<ResponseChefEvent> requestChef(final RequestChefEvent event);

    Future<ResponseChefEvent> updateChef(final UpdateChefEvent event);

    Future<ResponseChefEvent> deleteChef(final DeleteChefEvent event);
}

package org.example.seed.service;

import org.example.seed.event.chef.*;
import reactor.core.publisher.Mono;

/**
 * Created by PINA on 15/06/2017.
 */
public interface ChefService {

    Mono<CatalogChefEvent> requestChefs(final RequestAllChefEvent event);

    Mono<ResponseChefEvent> createChef(final CreateChefEvent event);

    Mono<ResponseChefEvent> requestChef(final RequestChefEvent event);

    Mono<ResponseChefEvent> updateChef(final UpdateChefEvent event);

    Mono<ResponseChefEvent> deleteChef(final DeleteChefEvent event);
}

change Future by Mono responses