All Downloads are FREE. Search and download functionalities are using the official Maven repository.

images.msg.channel.svg Maven / Gradle / Ivy

The newest version!




  
    
  
  
    
    
      
    
    
      
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
  
  
    
      
        
        
      
      
      
      
    
    @Channel("my-channel")
    @Inject@Channel("my-channel")Emitter<String> emitter;
    @Outgoing("my-channel")public PublisherBuilder<String> produceMessages() {    return ReactiveStreams.of("foo", "bar", "baz");}
    @ApplicationScoped@Connector("example-connector")class ExampleConnector implements IncomingConnectorFactory {   @Override   public PublisherBuilder<? extends Message<?>> getPublisherBuilder(Config c) {       return ReactiveStreams.of("foo", "bar")               .map(Message::of);   }
    OR
    OR
    
    
    
    @Incoming("my-channel")public void printMessage(String msg) {    System.out.println("Just received message: " + msg);}
    @Inject@Channel("my-channel")Publisher<String> field;
    @ApplicationScoped@Connector("example-connector")public class ExampleConnector implements OutgoingConnectorFactory {   @Override   public SubscriberBuilder<? extends Message<?>, Void> getSubscriberBuilder(Config c) {       return ReactiveStreams.<Message<?>>builder()               .map(Message::getPayload)               .forEach(o -> System.out.println("Connector says: " + o));   }
    
    
    
    OR
    OR
    
    
    UPSTREAM
    DOWNSTREAM
    
    1
    
    3
    
    4
    
    2
    
    6
    
    5
  





© 2015 - 2024 Weber Informatics LLC | Privacy Policy