Interface IncomingStreamHandler
-
public interface IncomingStreamHandlerListener to be notified when a connected peer creates a new stream.
-
-
Field Summary
Fields Modifier and Type Field Description static IncomingStreamHandlerREFUSE_INCOMING_STREAMS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreceive(FramedStream stream)Handle a new stream from this connection's peer.
-
-
-
Field Detail
-
REFUSE_INCOMING_STREAMS
static final IncomingStreamHandler REFUSE_INCOMING_STREAMS
-
-
Method Detail
-
receive
void receive(FramedStream stream) throws IOException
Handle a new stream from this connection's peer. Implementations should respond by eitherreplying to the streamorclosing it. This response does not need to be synchronous.- Throws:
IOException
-
-