public class PublishRsWithClause<E> extends StreamClause<E,PublishRsEnv<E>>
publish sentences in which the output resultset is configured.env| Constructor and Description |
|---|
PublishRsWithClause(PublishRsEnv<E> e)
Creates an instance with the
PublishRsEnv of the ongoing sentence. |
| Modifier and Type | Method and Description |
|---|---|
PublishRsWithClause<E> |
nonstop()
Configures publication to continue consuming the input
Stream after the expiry of the publishing timeout. |
URI |
with(FaultHandler handler)
Configures a
FaultHandler for publication and returns the locator of the resultset. |
PublishRsWithClause<E> |
with(ThreadProvider provider)
Configures a
ThreadProvider for the publishing thread. |
PublishRsWithClause<E> |
withBufferOf(int size)
Configures the element capacity of the resultset buffer.
|
URI |
withDefaults()
Returns the locator of the resultset.
|
PublishRsWithClause<E> |
withTimeoutOf(int timeout,
TimeUnit unit)
Configures the publishing timeout of the resultset.
|
public PublishRsWithClause(PublishRsEnv<E> e)
PublishRsEnv of the ongoing sentence.e - the environmentpublic PublishRsWithClause<E> withBufferOf(int size)
size - the number of elements in the bufferpublic PublishRsWithClause<E> withTimeoutOf(int timeout, TimeUnit unit)
If the timeout expire, elements of the input Stream will no longer be published, though they may still be
consumed if nonstop() has been invoked.
timeout - the timeoutunit - the time unit for the timeoutpublic PublishRsWithClause<E> nonstop()
Stream after the expiry of the publishing timeout.
Typically used for the side-effects of publications.
public PublishRsWithClause<E> with(ThreadProvider provider)
ThreadProvider for the publishing thread.
Publication occurs asynchronously and a thread provider may be required to make available thread-bound information in the publishing thread.
provider - the thread providerpublic URI with(FaultHandler handler)
FaultHandler for publication and returns the locator of the resultset.handler - the handlerpublic URI withDefaults()
Copyright © 2019. All Rights Reserved.