public T poll(final long time, final TimeUnit unit) throws QueueTimeoutException { return this.ensureOpen(time, unit); }
public T get() { return ensureOpen(this.timeout, this.timeUnit); }
public ReactiveSeq<Collection<T>> streamBatchNoTimeout(final Continueable s, final Function<Supplier<T>, Supplier<Collection<T>>> batcher) { this.sub = s; listeningStreams.incrementAndGet(); //assumes all Streams that ever connected, remain connected return ReactiveSeq.fromStream(closingStreamBatch(batcher.apply(() -> ensureOpen(this.timeout, this.timeUnit)), s)); }
public ReactiveSeq<Collection<T>> streamBatch(final Continueable s, final Function<BiFunction<Long, TimeUnit, T>, Supplier<Collection<T>>> batcher) { this.sub = s; listeningStreams.incrementAndGet(); //assumes all Streams that ever connected, remain connected return ReactiveSeq.fromStream(closingStreamBatch(batcher.apply((timeout, timeUnit) -> ensureOpen(timeout, timeUnit)), s)); } public ReactiveSeq<Seq<T>> streamGroupedByTime(long time, TimeUnit t){
public ReactiveSeq<CompletableFuture<T>> streamControlFutures(final Continueable s, final Function<Supplier<T>, CompletableFuture<T>> batcher) { this.sub = s; listeningStreams.incrementAndGet(); //assumes all Streams that ever connected, remain connected return ReactiveSeq.fromStream(closingStreamFutures(() -> batcher.apply(() -> ensureOpen(this.timeout, this.timeUnit)), s)); }
public ReactiveSeq<T> streamControl(final Continueable s, final Function<Supplier<T>, Supplier<T>> batcher) { listeningStreams.incrementAndGet(); //assumes all Streams that ever connected, remain connected return ReactiveSeq.fromStream(closingStream(batcher.apply(() -> ensureOpen(this.timeout, this.timeUnit)), s)); }
public T get() { return ensureOpen(this.timeout, this.timeUnit); }
public T poll(final long time, final TimeUnit unit) throws QueueTimeoutException { return this.ensureOpen(time, unit); }
public ReactiveSeq<CompletableFuture<T>> streamControlFutures(final Continueable s, final Function<Supplier<T>, CompletableFuture<T>> batcher) { this.sub = s; listeningStreams.incrementAndGet(); //assumes all Streams that ever connected, remain connected return ReactiveSeq.fromStream(closingStreamFutures(() -> batcher.apply(() -> ensureOpen(this.timeout, this.timeUnit)), s)); }
public ReactiveSeq<Collection<T>> streamBatchNoTimeout(final Continueable s, final Function<Supplier<T>, Supplier<Collection<T>>> batcher) { this.sub = s; listeningStreams.incrementAndGet(); //assumes all Streams that ever connected, remain connected return ReactiveSeq.fromStream(closingStreamBatch(batcher.apply(() -> ensureOpen(this.timeout, this.timeUnit)), s)); }
public ReactiveSeq<Collection<T>> streamBatch(final Continueable s, final Function<BiFunction<Long, TimeUnit, T>, Supplier<Collection<T>>> batcher) { this.sub = s; listeningStreams.incrementAndGet(); //assumes all Streams that ever connected, remain connected return ReactiveSeq.fromStream(closingStreamBatch(batcher.apply((timeout, timeUnit) -> ensureOpen(timeout, timeUnit)), s)); } public ReactiveSeq<Seq<T>> streamGroupedByTime(long time, TimeUnit t){
public ReactiveSeq<T> streamControl(final Continueable s, final Function<Supplier<T>, Supplier<T>> batcher) { listeningStreams.incrementAndGet(); //assumes all Streams that ever connected, remain connected return ReactiveSeq.fromStream(closingStream(batcher.apply(() -> ensureOpen(this.timeout, this.timeUnit)), s)); }