Package org.pipecraft.pipes.utils
Interface PipeSupplier<T>
-
- Type Parameters:
T- The type of the items the produced pipes work with
public interface PipeSupplier<T>An interface for pipe creators. The standardSupplierinterface isn't good enough, because we want to allowIOExceptionas well asPipeException.- Author:
- Eyal Schneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pipe<T>get()
-
-
-
Method Detail
-
get
Pipe<T> get() throws IOException, PipeException, InterruptedException
- Returns:
- The created pipe
- Throws:
IOException- In case of creation error due to IO problemPipeException- In case of other pipeline related problems preventing the creation from completingInterruptedException- In case that the current thread is interrupted while producing the pipe
-
-