Package io.servicetalk.concurrent.api
Interface ProcessorSignalsConsumer<T>
- Type Parameters:
T- Type of itemsconsumedby this consumer.
public interface ProcessorSignalsConsumer<T>
Consumer of items from a
PublisherProcessorSignalsHolder or BlockingProcessorSignalsHolder.-
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeItem(T item) Consumes the passeditem.voidConsumes the termination of the holder.voidconsumeTerminal(Throwable cause) Consumes theThrowablethat terminated the holder.
-
Method Details
-
consumeItem
Consumes the passeditem.- Parameters:
item- to consume. This will benullif anullwas added to the holder.
-
consumeTerminal
Consumes theThrowablethat terminated the holder.- Parameters:
cause- of termination of the holder.
-
consumeTerminal
void consumeTerminal()Consumes the termination of the holder.
-