Class EmbeddedPipeline

    • Constructor Detail

      • EmbeddedPipeline

        public EmbeddedPipeline​(DrasylConfig config,
                                Identity identity,
                                PeersManager peersManager,
                                Handler... handlers)
        Creates a new embedded pipeline and adds all given handler to it. Handler are added with their simple class name.
        Parameters:
        config - the config
        identity - the identity
        peersManager - the peers manager
        handlers - the handlers
    • Method Detail

      • inboundMessages

        public <T> io.reactivex.rxjava3.core.Observable<T> inboundMessages​(Class<T> clazz)
        Returns:
        all messages of type T that passes the pipeline until the end
      • inboundMessages

        public <T> io.reactivex.rxjava3.core.Observable<T> inboundMessages​(TypeReference<T> typeReference)
        Returns:
        all messages of type T that passes the pipeline until the end
      • inboundMessages

        public io.reactivex.rxjava3.core.Observable<Object> inboundMessages()
      • inboundMessagesWithRecipient

        public io.reactivex.rxjava3.core.Observable<AddressedEnvelope<Address,​Object>> inboundMessagesWithRecipient()
        Returns:
        all messages that passes the pipeline until the end
      • inboundEvents

        public io.reactivex.rxjava3.core.Observable<Event> inboundEvents()
        Returns:
        all events that passes the pipeline until the end
      • outboundMessages

        public <T> io.reactivex.rxjava3.core.Observable<T> outboundMessages​(Class<T> clazz)
        Returns:
        all messages of type T that passes the pipeline until the end
      • outboundMessages

        public <T> io.reactivex.rxjava3.core.Observable<T> outboundMessages​(TypeReference<T> typeReference)
        Returns:
        all messages of type T that passes the pipeline until the end
      • outboundMessages

        public io.reactivex.rxjava3.core.Observable<Object> outboundMessages()
        Returns:
        all messages that passes the pipeline until the end
      • close

        public void close()
        This method does release all potentially acquired ReferenceCounted objects.
        Specified by:
        close in interface AutoCloseable