T - the type parameterAutoCloseable, Flow.Publisher<T>, JMPublisherInterface<T>, JMSubmissionPublisherInterface<T>WaitingSubmissionPublisherpublic class SubmissionPublisherImplementsJM<T> extends SubmissionPublisher<T> implements JMSubmissionPublisherInterface<T>
| Modifier and Type | Field | Description |
|---|---|---|
protected org.slf4j.Logger |
log |
The Log.
|
| Constructor | Description |
|---|---|
SubmissionPublisherImplementsJM() |
Instantiates a new Submission publisher implements jm.
|
SubmissionPublisherImplementsJM(Executor executor,
int maxBufferCapacity) |
Instantiates a new Submission publisher implements jm.
|
SubmissionPublisherImplementsJM(Executor executor,
int maxBufferCapacity,
java.util.function.BiConsumer<? super Flow.Subscriber<? super T>,? super Throwable> handler) |
Instantiates a new Submission publisher implements jm.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
submit(T item) |
Submit int.
|
void |
subscribe(Flow.Subscriber<? super T> subscriber) |
consumeAndReturnSubscriber, consumeWith, subscribeAndReturnSubcriber, subscribeWithclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, closeExceptionally, consume, estimateMaximumLag, estimateMinimumDemand, getClosedException, getExecutor, getMaxBufferCapacity, getNumberOfSubscribers, getSubscribers, hasSubscribers, isClosed, isSubscribed, offer, offerpublic SubmissionPublisherImplementsJM(Executor executor, int maxBufferCapacity, java.util.function.BiConsumer<? super Flow.Subscriber<? super T>,? super Throwable> handler)
executor - the executormaxBufferCapacity - the max buffer capacityhandler - the handlerpublic SubmissionPublisherImplementsJM(Executor executor, int maxBufferCapacity)
executor - the executormaxBufferCapacity - the max buffer capacitypublic SubmissionPublisherImplementsJM()
public int submit(T item)
JMSubmissionPublisherInterfacesubmit in interface JMSubmissionPublisherInterface<T>submit in class SubmissionPublisher<T>item - the itempublic void subscribe(Flow.Subscriber<? super T> subscriber)
subscribe in interface Flow.Publisher<T>subscribe in class SubmissionPublisher<T>Copyright © 2018. All rights reserved.