# Flow.Processor

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Inherited Methods](https://developer.android.com/reference/java/util/concurrent/Flow.Processor#inhmethods)  

# Flow.Processor

`
public
static


interface
Flow.Processor
`  
`


implements

`[Publisher](https://developer.android.com/reference/java/util/concurrent/Flow.Publisher)`<R>,

`[Subscriber](https://developer.android.com/reference/java/util/concurrent/Flow.Subscriber)`<T>


`

|---------------------------------------------|
| java.util.concurrent.Flow.Processor\<T, R\> |

<br />

*** ** * ** ***

A component that acts as both a Subscriber and Publisher.

## Summary

| ### Inherited methods |
|-----------------------|---|
| From interface` `[java.util.concurrent.Flow.Publisher](https://developer.android.com/reference/java/util/concurrent/Flow.Publisher)` ` |------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[subscribe](https://developer.android.com/reference/java/util/concurrent/Flow.Publisher#subscribe(java.util.concurrent.Flow.Subscriber<?%20super%20T>))`(`[Subscriber](https://developer.android.com/reference/java/util/concurrent/Flow.Subscriber)`<? super T> subscriber) ` Adds the given Subscriber if possible. | ||
| From interface` `[java.util.concurrent.Flow.Subscriber](https://developer.android.com/reference/java/util/concurrent/Flow.Subscriber)` ` |------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` `[onComplete](https://developer.android.com/reference/java/util/concurrent/Flow.Subscriber#onComplete())`() ` Method invoked when it is known that no additional Subscriber method invocations will occur for a Subscription that is not already terminated by error, after which no other Subscriber methods are invoked by the Subscription.                                 | | ` abstract void` | ` `[onError](https://developer.android.com/reference/java/util/concurrent/Flow.Subscriber#onError(java.lang.Throwable))`(`[Throwable](https://developer.android.com/reference/java/lang/Throwable)` throwable) ` Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription. | | ` abstract void` | ` `[onNext](https://developer.android.com/reference/java/util/concurrent/Flow.Subscriber#onNext(T))`(T item) ` Method invoked with a Subscription's next item.                                                                                                                                                                                                                   | | ` abstract void` | ` `[onSubscribe](https://developer.android.com/reference/java/util/concurrent/Flow.Subscriber#onSubscribe(java.util.concurrent.Flow.Subscription))`(`[Flow.Subscription](https://developer.android.com/reference/java/util/concurrent/Flow.Subscription)` subscription) ` Method invoked prior to invoking any other Subscriber methods for the given Subscription.              | ||