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
    ServiceDescriptorContextManager getServiceDescriptorContextManager()  
    void init()  
    <T> reactor.core.publisher.Mono<T> requestReply​(java.lang.String serviceName, java.lang.Object msg)  
    <T> reactor.core.publisher.Flux<T> requestStream​(java.lang.String serviceName, java.lang.Object msg)  
    reactor.core.publisher.Mono<java.lang.Void> send​(java.lang.String serviceName, java.lang.Object msg)  
    void shutdown()  

    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()
    • shutdown

      @PreDestroy public void shutdown()
    • getServiceDescriptorContextManager

      public ServiceDescriptorContextManager getServiceDescriptorContextManager()
    • 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)
    • send

      public reactor.core.publisher.Mono<java.lang.Void> send​(java.lang.String serviceName, java.lang.Object msg)