Package org.reactivecommons.async.rabbit
Class DynamicRegistryImp
java.lang.Object
org.reactivecommons.async.rabbit.DynamicRegistryImp
- All Implemented Interfaces:
org.reactivecommons.async.api.DynamicRegistry
public class DynamicRegistryImp
extends Object
implements org.reactivecommons.async.api.DynamicRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> reactor.core.publisher.Mono<Void>listenEvent(String eventName, org.reactivecommons.async.api.handlers.DomainEventHandler<T> fn, Class<T> eventClass) <T,R> void serveQuery(String resource, org.reactivecommons.async.api.handlers.QueryHandler<T, R> handler, Class<R> queryClass) <R> voidserveQuery(String resource, org.reactivecommons.async.api.handlers.QueryHandlerDelegate<Void, R> handler, Class<R> queryClass) reactor.core.publisher.Mono<Void>startListeningEvent(String eventName) reactor.core.publisher.Mono<Void>stopListeningEvent(String eventName)
-
Constructor Details
-
DynamicRegistryImp
public DynamicRegistryImp()
-
-
Method Details
-
listenEvent
public <T> reactor.core.publisher.Mono<Void> listenEvent(String eventName, org.reactivecommons.async.api.handlers.DomainEventHandler<T> fn, Class<T> eventClass) - Specified by:
listenEventin interfaceorg.reactivecommons.async.api.DynamicRegistry
-
serveQuery
public <T,R> void serveQuery(String resource, org.reactivecommons.async.api.handlers.QueryHandler<T, R> handler, Class<R> queryClass) - Specified by:
serveQueryin interfaceorg.reactivecommons.async.api.DynamicRegistry
-
serveQuery
public <R> void serveQuery(String resource, org.reactivecommons.async.api.handlers.QueryHandlerDelegate<Void, R> handler, Class<R> queryClass) - Specified by:
serveQueryin interfaceorg.reactivecommons.async.api.DynamicRegistry
-
startListeningEvent
- Specified by:
startListeningEventin interfaceorg.reactivecommons.async.api.DynamicRegistry
-
stopListeningEvent
- Specified by:
stopListeningEventin interfaceorg.reactivecommons.async.api.DynamicRegistry
-