Top Description Methods
io.r2dbc.spi

public Interface Clob

Imports
org.reactivestreams.Publisher, .Subscriber, .Subscription

Represents a handle to a large character object.

Method Summary

Modifier and TypeMethod and Description
public Publisher<Void>

Returns:

a Publisher that termination is complete
discard
()

Release any resources held by the Clob when not subscribing to the stream content.

public static Clob

Returns:

the Clob wrapper
from
(Publisher<? extends CharSequence>
the backing Publisher of CharSequence.
p
)

Creates a new Clob wrapper that is backed by a Publisher of CharSequence or its subtypes.

public Publisher<CharSequence>

Returns:

a Publisher emitting CharSequence chunks.
stream
()

Returns the content stream as a Publisher emitting CharSequence chunks.

Method Detail

discardback to summary
public Publisher<Void> discard()

Release any resources held by the Clob when not subscribing to the stream content.

Returns:Publisher<Void>

a Publisher that termination is complete

fromback to summary
public static Clob from(Publisher<? extends CharSequence> p)

Creates a new Clob wrapper that is backed by a Publisher of CharSequence or its subtypes. The wrapper subscribes and cancels the subscription immediately on discard().

Parameters
p:Publisher<? extends CharSequence>

the backing Publisher of CharSequence.

Returns:Clob

the Clob wrapper

Annotations
@SuppressWarnings:unchecked, rawtypes
streamback to summary
public Publisher<CharSequence> stream()

Returns the content stream as a Publisher emitting CharSequence chunks.

The content stream can be consumed ("subscribed to") only once. Subsequent consumptions result in a IllegalStateException.

Once subscribed, canceling the subscription releases resources associated with this Clob.

Returns:Publisher<CharSequence>

a Publisher emitting CharSequence chunks.