Flow.Processor (Java SE 13 & JDK 13 )
Description: declaration: module: java.base, package: java.util.concurrent, class: Flow, interface: Processor
Keywords: java.util.concurrent.Flow.Processor interface

Module java.base
Package java.util.concurrent

# Interface Flow.Processor<T,​R>

Type Parameters:
  `T` - the subscribed item type
  `R` - the published item type

All Superinterfaces:
  `Flow.Publisher<R>`, `Flow.Subscriber<T>`

Enclosing class:
  Flow

    public static interface Flow.Processor<T,​R>
    extends Flow.Subscriber<T>, Flow.Publisher<R>

A component that acts as both a Subscriber and Publisher.

- ## Method Summary

  ### Methods declared in interface java.util.concurrent.Flow.Publisher

  `subscribe`

  ### Methods declared in interface java.util.concurrent.Flow.Subscriber

  `onComplete, onError, onNext, onSubscribe`