Class Cluster
java.lang.Object
com.cloudimpl.outstack.spring.component.Cluster
@Component("OUTSTACK_CLUSTER")
public class Cluster
extends java.lang.Object
- Author:
- nuwan
-
Constructor Summary
Constructors Constructor Description Cluster() -
Method Summary
Modifier and Type Method Description static java.util.function.Consumer<java.lang.Object>autoWireInstance()ServiceDescriptorContextManagergetServiceDescriptorContextManager()ServiceRegistryReadOnlygetServiceRegistry()voidinit()<T> reactor.core.publisher.Mono<T>requestReply(java.lang.String serviceName, java.lang.Object msg)<T> reactor.core.publisher.Mono<T>requestReply(org.springframework.http.server.reactive.ServerHttpRequest httpRequest, java.lang.String serviceName, java.lang.Object msg)<T> reactor.core.publisher.Flux<T>requestStream(java.lang.String serviceName, java.lang.Object msg)<T> reactor.core.publisher.Flux<T>requestStream(org.springframework.http.server.reactive.ServerHttpRequest httpRequest, java.lang.String serviceName, java.lang.Object msg)reactor.core.publisher.Mono<java.lang.Void>send(java.lang.String serviceName, java.lang.Object msg)voidshutdown()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Cluster
public Cluster()
-
-
Method Details
-
init
@PostConstruct public void init() -
autoWireInstance
public static java.util.function.Consumer<java.lang.Object> autoWireInstance() -
shutdown
@PreDestroy public void shutdown() -
getServiceRegistry
-
getServiceDescriptorContextManager
-
requestReply
public <T> reactor.core.publisher.Mono<T> requestReply(org.springframework.http.server.reactive.ServerHttpRequest httpRequest, java.lang.String serviceName, java.lang.Object msg) -
requestReply
public <T> reactor.core.publisher.Mono<T> requestReply(java.lang.String serviceName, java.lang.Object msg) -
requestStream
public <T> reactor.core.publisher.Flux<T> requestStream(java.lang.String serviceName, java.lang.Object msg) -
requestStream
public <T> reactor.core.publisher.Flux<T> requestStream(org.springframework.http.server.reactive.ServerHttpRequest httpRequest, java.lang.String serviceName, java.lang.Object msg) -
send
public reactor.core.publisher.Mono<java.lang.Void> send(java.lang.String serviceName, java.lang.Object msg)
-