T
- the subscribed item typeFlow.Processor<T,R>
public static interface Flow.Subscriber<T>
Flow.Subscription
.Modifier and Type | Method | Description |
---|---|---|
void |
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.
|
void |
onError(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.
|
void |
onNext(T item) |
Method invoked with a Subscription's next item.
|
void |
onSubscribe(Flow.Subscription subscription) |
Method invoked prior to invoking any other Subscriber
methods for the given Subscription.
|
void onSubscribe(Flow.Subscription subscription)
Typically, implementations of this method invoke
subscription.request
to enable receiving items.
subscription
- a new subscriptionvoid onNext(T item)
item
- the itemvoid onError(Throwable throwable)
throwable
- the exceptionvoid onComplete()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps