Class HertsServiceReactiveStreaming<T,​K>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      K broadcast​(java.lang.String clientId)
      Broadcast receiver.
      org.hertsstack.core.service.HertsBroadCaster getBroadCaster()  
      java.lang.String getClientId()
      Get client id for this instance
      java.lang.String getConnection()
      Get connections
      io.grpc.MethodDescriptor.MethodType getGrpcMethodType()
      Get grpc method
      HertsType getHertsType()
      Get implemented herts core type
      java.lang.Class<?> getReceiver()
      Get HertsReceiver
      java.lang.Class<?> getService()
      Get HertsService.
      void registerReceiver​(io.grpc.stub.StreamObserver<java.lang.Object> objectStreamObservers)
      Register receiver internal of Client
      void setBroker​(org.hertsstack.broker.ReactiveBroker broker)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HertsServiceReactiveStreaming

        public HertsServiceReactiveStreaming()
    • Method Detail

      • getClientId

        public java.lang.String getClientId()
        Get client id for this instance
        Returns:
        ClientId
      • broadcast

        public K broadcast​(java.lang.String clientId)
        Broadcast receiver. Same as generics K type
        Parameters:
        clientId - ClientId
        Returns:
        Receiver
      • registerReceiver

        public void registerReceiver​(io.grpc.stub.StreamObserver<java.lang.Object> objectStreamObservers)
        Description copied from interface: ReactiveStreaming
        Register receiver internal of Client
        Specified by:
        registerReceiver in interface ReactiveStreaming
        Parameters:
        objectStreamObservers - StreamObserver
      • setBroker

        public void setBroker​(org.hertsstack.broker.ReactiveBroker broker)
      • getBroadCaster

        public org.hertsstack.core.service.HertsBroadCaster getBroadCaster()