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