public class TripleServerStream extends AbstractStream implements ServerStream
| Modifier and Type | Class and Description |
|---|---|
class |
TripleServerStream.ServerTransportObserver |
ServerStream.Listener| Modifier and Type | Field and Description |
|---|---|
TripleServerStream.ServerTransportObserver |
transportObserver |
| Constructor and Description |
|---|
TripleServerStream(io.netty.channel.Channel channel,
org.apache.dubbo.rpc.model.FrameworkModel frameworkModel,
Executor executor,
PathResolver pathResolver,
String acceptEncoding,
List<HeaderFilter> filters) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.util.concurrent.Future<?> |
cancelByLocal(TriRpcStatus status)
Cancel by this peer.
|
io.netty.channel.ChannelFuture |
complete(TriRpcStatus status,
Map<String,Object> attachments)
Complete the stream, send response to client
|
SocketAddress |
remoteAddress()
Get remote peer address.
|
void |
request(int n)
Request n message from remote peer.
|
io.netty.channel.ChannelFuture |
reset(io.netty.handler.codec.http2.Http2Error cause) |
io.netty.channel.ChannelFuture |
sendHeader(io.netty.handler.codec.http2.Http2Headers headers)
Send headers to remote peer.
|
io.netty.channel.ChannelFuture |
sendMessage(byte[] message,
int compressFlag)
Send message to client
|
public final TripleServerStream.ServerTransportObserver transportObserver
public TripleServerStream(io.netty.channel.Channel channel,
org.apache.dubbo.rpc.model.FrameworkModel frameworkModel,
Executor executor,
PathResolver pathResolver,
String acceptEncoding,
List<HeaderFilter> filters)
public SocketAddress remoteAddress()
StreamremoteAddress in interface Streampublic void request(int n)
Streampublic io.netty.channel.ChannelFuture reset(io.netty.handler.codec.http2.Http2Error cause)
public io.netty.channel.ChannelFuture sendHeader(io.netty.handler.codec.http2.Http2Headers headers)
StreamsendHeader in interface Streamheaders - headers to send to remote peerpublic io.netty.util.concurrent.Future<?> cancelByLocal(TriRpcStatus status)
StreamcancelByLocal in interface Streamstatus - cancel status to send to remote peerpublic io.netty.channel.ChannelFuture complete(TriRpcStatus status, Map<String,Object> attachments)
ServerStreamcomplete in interface ServerStreamstatus - response statusattachments - response attachmentspublic io.netty.channel.ChannelFuture sendMessage(byte[] message,
int compressFlag)
ServerStreamsendMessage in interface ServerStreammessage - raw messagecompressFlag - whether to compress the messageCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.