public static class Results.Chunks.Out<A>
extends java.lang.Object
Constructor and Description |
---|
Results.Chunks.Out(play.api.libs.iteratee.Concurrent.Channel<A> channel,
F.RedeemablePromise<java.lang.Object> disconnected) |
Results.Chunks.Out(play.api.libs.iteratee.Concurrent.Channel<A> channel,
java.util.List<F.Callback0> disconnectedCallbacks) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream.
|
void |
onDisconnected(F.Callback0 callback)
Attach a callback to be called when the socket is disconnected.
|
void |
write(A chunk)
Write a Chunk.
|
public Results.Chunks.Out(play.api.libs.iteratee.Concurrent.Channel<A> channel, F.RedeemablePromise<java.lang.Object> disconnected)
public Results.Chunks.Out(play.api.libs.iteratee.Concurrent.Channel<A> channel, java.util.List<F.Callback0> disconnectedCallbacks)
public void write(A chunk)
public void onDisconnected(F.Callback0 callback)
public void close()