|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.streams.dsl.StreamClause<E,PublishRsEnv<E>>
org.gcube.data.streams.dsl.publish.PublishRsWithClause<E>
public class PublishRsWithClause<E>
The clause of publish sentences in which the output resultset is configured.
| Field Summary |
|---|
| Fields inherited from class org.gcube.data.streams.dsl.StreamClause |
|---|
env |
| Constructor Summary | |
|---|---|
PublishRsWithClause(PublishRsEnv<E> e)
Creates an instance with the PublishRsEnv of the ongoing sentence. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PublishRsWithClause(PublishRsEnv<E> e)
PublishRsEnv of the ongoing sentence.
e - the environment| Method Detail |
|---|
public PublishRsWithClause<E> withBufferOf(int size)
size - the number of elements in the buffer
public 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 timeout
public 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 provider
public URI with(FaultHandler handler)
FaultHandler for publication and returns the locator of the resultset.
handler - the handler
public URI withDefaults()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||