Package io.grpc.servlet.web.websocket
Class AbstractWebsocketStreamImpl
java.lang.Object
io.grpc.internal.AbstractStream
io.grpc.internal.AbstractServerStream
io.grpc.servlet.web.websocket.AbstractWebsocketStreamImpl
- All Implemented Interfaces:
io.grpc.internal.MessageFramer.Sink
,io.grpc.internal.ServerStream
,io.grpc.internal.Stream
- Direct Known Subclasses:
MultiplexedWebsocketStreamImpl
,WebsocketStreamImpl
public abstract class AbstractWebsocketStreamImpl
extends io.grpc.internal.AbstractServerStream
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.internal.AbstractServerStream
io.grpc.internal.AbstractServerStream.Sink, io.grpc.internal.AbstractServerStream.TransportState
-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.grpc.Attributes
protected final io.grpc.InternalLogId
protected final io.grpc.internal.AbstractServerStream.TransportState
protected final jakarta.websocket.Session
-
Constructor Summary
ConstructorDescriptionAbstractWebsocketStreamImpl
(io.grpc.internal.WritableBufferAllocator bufferAllocator, io.grpc.internal.StatsTraceContext statsTraceCtx, int maxInboundMessageSize, jakarta.websocket.Session websocketSession, io.grpc.InternalLogId logId, io.grpc.Attributes attributes, Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
cancelSink
(io.grpc.Status status) void
createStream
(io.grpc.internal.ServerTransportListener transportListener, String methodName, io.grpc.Metadata headers) io.grpc.Attributes
void
inboundDataReceived
(io.grpc.internal.ReadableBuffer message, boolean endOfStream) int
streamId()
void
transportReportStatus
(io.grpc.Status status) io.grpc.internal.AbstractServerStream.TransportState
protected static void
writeAsciiHeadersToMessage
(byte[][] serializedHeaders, ByteBuffer message) Methods inherited from class io.grpc.internal.AbstractServerStream
abstractServerStreamSink, cancel, close, deliverFrame, framer, getAuthority, isReady, setDecompressor, setListener, statsTraceContext, writeHeaders
Methods inherited from class io.grpc.internal.AbstractStream
endOfMessages, flush, onSendingBytes, optimizeForDirectExecutor, request, setCompressor, setMessageCompression, writeMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.grpc.internal.Stream
flush, optimizeForDirectExecutor, request, setCompressor, setMessageCompression, writeMessage
-
Field Details
-
transportState
protected final io.grpc.internal.AbstractServerStream.TransportState transportState -
websocketSession
protected final jakarta.websocket.Session websocketSession -
logId
protected final io.grpc.InternalLogId logId -
attributes
protected final io.grpc.Attributes attributes
-
-
Constructor Details
-
AbstractWebsocketStreamImpl
public AbstractWebsocketStreamImpl(io.grpc.internal.WritableBufferAllocator bufferAllocator, io.grpc.internal.StatsTraceContext statsTraceCtx, int maxInboundMessageSize, jakarta.websocket.Session websocketSession, io.grpc.InternalLogId logId, io.grpc.Attributes attributes, Logger logger)
-
-
Method Details
-
writeAsciiHeadersToMessage
-
streamId
public int streamId() -
getAttributes
public io.grpc.Attributes getAttributes()- Specified by:
getAttributes
in interfaceio.grpc.internal.ServerStream
- Overrides:
getAttributes
in classio.grpc.internal.AbstractServerStream
-
createStream
public void createStream(io.grpc.internal.ServerTransportListener transportListener, String methodName, io.grpc.Metadata headers) -
inboundDataReceived
public void inboundDataReceived(io.grpc.internal.ReadableBuffer message, boolean endOfStream) -
transportReportStatus
public void transportReportStatus(io.grpc.Status status) -
transportState
public io.grpc.internal.AbstractServerStream.TransportState transportState()- Specified by:
transportState
in classio.grpc.internal.AbstractServerStream
-
cancelSink
protected void cancelSink(io.grpc.Status status)
-