blob: b7b760ce0334e07db3e6a868904e06bfb9dd6646 [file] [log] [blame]
package com.google.net.stubby.newtransport;
/**
* Extension of {@link Stream} to support client-side termination semantics.
*/
public interface ClientStream extends Stream {
/**
* Used to abnormally terminate the stream. Any internally buffered messages are dropped. After
* this is called, no further messages may be sent and no further {@link StreamListener} callbacks
* (with the exception of onClosed) will be invoked for this stream. Any frames received for this
* stream after returning from this method will be discarded.
*/
void cancel();
}