Top Description Fields Constructors Methods
org.eclipse.jetty.reactive.client.internal

public Class ResultProcessor<T>

extends AbstractSingleProcessor<T, ReactiveResponse.Result<T>>
Class Inheritance
Type Parameters
<T>
the type of the response content associated
Imports
org.eclipse.jetty.reactive.client.ReactiveResponse

A org.reactivestreams.Processor that receives (typically) a single item of response content of type T from upstream, and produces a single ReactiveResponse.Result that wraps the ReactiveResponse and the response content item.

Field Summary

Modifier and TypeField and Description
private T
private final ReactiveResponse

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
onNext(T
the element signaled
item
)

Implements org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).
Inherited from org.eclipse.jetty.reactive.client.internal.AbstractSingleProcessor:
canceldownStreamdownStreamOnNextonErroronFailureonRequestonSubscribetoStringupStreamCancelupStreamRequest

Field Detail

itemback to summary
private T item
responseback to summary
private final ReactiveResponse response

Constructor Detail

ResultProcessorback to summary
public ResultProcessor(ReactiveResponse response)

Method Detail

onCompleteback to summary
public void onComplete()

Overrides org.eclipse.jetty.reactive.client.internal.AbstractSingleProcessor.onComplete.

Implements org.reactivestreams.Subscriber.onComplete.

Doc from org.reactivestreams.Subscriber.onComplete.

Successful terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Annotations
@Override
onNextback to summary
public void onNext(T item)

Implements org.reactivestreams.Subscriber.onNext.

Doc from org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).

Parameters
item:T

the element signaled

Annotations
@Override