CARVIEW |
Select Language
HTTP/1.1 200 OK
Date: Thu, 24 Jul 2025 00:29:37 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Last-Modified: Wed, 17 Apr 2024 15:19:56 GMT
Vary: Accept-Encoding
ETag: W/"661fe89c-3274"
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Access-Control-Allow-Origin: *
Content-Encoding: gzip
Gatherer.Downstream (Java SE 23 & JDK 23 [ad-hoc build])
This specification is not final and is subject to change. Use is subject to license terms.
Interface Gatherer.Downstream<T>
- Type Parameters:
T
- the type of elements this downstream accepts
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Downstream
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A Downstream object is the next stage in a pipeline of operations,
to which elements can be sent.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Checks whether the next stage is known to not want any more elements sent to it.boolean
Pushes, if possible, the provided element downstream -- to the next stage in the pipeline.
-
Method Details
-
push
Pushes, if possible, the provided element downstream -- to the next stage in the pipeline.- Implementation Requirements:
- If this method returns
false
then no further elements will be accepted and subsequent invocations of this method will returnfalse
. - Parameters:
element
- the element to push downstream- Returns:
true
if more elements can be sent, andfalse
if not.
-
isRejecting
default boolean isRejecting()Checks whether the next stage is known to not want any more elements sent to it.- API Note:
- This is best-effort only, once this returns
true
it should never returnfalse
again for the same instance. - Implementation Requirements:
- The implementation in this interface returns
false
. - Returns:
true
if this Downstream is known not to want any more elements sent to it,false
if otherwise
-
Downstream
when preview features are enabled.