This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Takes a bytes source and streams it to parallel sources. I.E Streaming bytes to two server in parallel. | |
*/ | |
public final class MirroredSource { | |
private final Buffer buffer = new Buffer(); | |
private final Source source; | |
private final AtomicBoolean sourceExhausted = new AtomicBoolean(); | |
private boolean closed = false; |
NewerOlder