Package io.gravitee.gateway.api.stream
Class SimpleReadWriteStream<T>
- java.lang.Object
-
- io.gravitee.gateway.api.stream.SimpleReadWriteStream<T>
-
- All Implemented Interfaces:
ReadStream<T>,ReadWriteStream<T>,WriteStream<T>
- Direct Known Subclasses:
BufferedReadWriteStream
public abstract class SimpleReadWriteStream<T> extends Object implements ReadWriteStream<T>
- Author:
- David BRASSELY (david at gravitee.io), GraviteeSource Team
-
-
Field Summary
Fields Modifier and Type Field Description protected Handler<T>bodyHandlerprotected Handler<Void>endHandler
-
Constructor Summary
Constructors Constructor Description SimpleReadWriteStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleReadWriteStream<T>bodyHandler(Handler<T> bodyHandler)voidend()SimpleReadWriteStream<T>endHandler(Handler<Void> endHandler)SimpleReadWriteStream<T>write(T content)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.gravitee.gateway.api.stream.ReadStream
pause, resume
-
Methods inherited from interface io.gravitee.gateway.api.stream.WriteStream
drainHandler, end, writeQueueFull
-
-
-
-
Method Detail
-
bodyHandler
public SimpleReadWriteStream<T> bodyHandler(Handler<T> bodyHandler)
- Specified by:
bodyHandlerin interfaceReadStream<T>
-
endHandler
public SimpleReadWriteStream<T> endHandler(Handler<Void> endHandler)
- Specified by:
endHandlerin interfaceReadStream<T>
-
write
public SimpleReadWriteStream<T> write(T content)
- Specified by:
writein interfaceWriteStream<T>
-
end
public void end()
- Specified by:
endin interfaceWriteStream<T>
-
-