Package io.grpc.servlet.jakarta
Class ServletAdapter.GrpcAsyncListener
- java.lang.Object
-
- io.grpc.servlet.jakarta.ServletAdapter.GrpcAsyncListener
-
- All Implemented Interfaces:
jakarta.servlet.AsyncListener
,java.util.EventListener
- Enclosing class:
- ServletAdapter
private static final class ServletAdapter.GrpcAsyncListener extends java.lang.Object implements jakarta.servlet.AsyncListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) InternalLogId
logId
(package private) ServletServerStream
stream
-
Constructor Summary
Constructors Constructor Description GrpcAsyncListener(ServletServerStream stream, InternalLogId logId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onComplete(jakarta.servlet.AsyncEvent event)
void
onError(jakarta.servlet.AsyncEvent event)
void
onStartAsync(jakarta.servlet.AsyncEvent event)
void
onTimeout(jakarta.servlet.AsyncEvent event)
-
-
-
Field Detail
-
logId
final InternalLogId logId
-
stream
final ServletServerStream stream
-
-
Constructor Detail
-
GrpcAsyncListener
GrpcAsyncListener(ServletServerStream stream, InternalLogId logId)
-
-
Method Detail
-
onComplete
public void onComplete(jakarta.servlet.AsyncEvent event)
- Specified by:
onComplete
in interfacejakarta.servlet.AsyncListener
-
onTimeout
public void onTimeout(jakarta.servlet.AsyncEvent event)
- Specified by:
onTimeout
in interfacejakarta.servlet.AsyncListener
-
onError
public void onError(jakarta.servlet.AsyncEvent event)
- Specified by:
onError
in interfacejakarta.servlet.AsyncListener
-
onStartAsync
public void onStartAsync(jakarta.servlet.AsyncEvent event)
- Specified by:
onStartAsync
in interfacejakarta.servlet.AsyncListener
-
-