Interface Handler<T>
- Type Parameters:
T- The type this handler accepts and returns
- All Known Implementing Classes:
AbstractHandler,JsonHandler,ProtobufHandler
public interface Handler<T>
API for text request-response calls to an Avatica server.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classStruct that encapsulates the context of the result of a request to Avatica. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidsetRpcMetadata(Service.RpcMetadataResponse metadata) Sets some general server information to return to the client in all responses.
-
Field Details
-
HTTP_OK
static final int HTTP_OK- See Also:
-
HTTP_UNAUTHENTICATED
static final int HTTP_UNAUTHENTICATED- See Also:
-
HTTP_UNAUTHORIZED
static final int HTTP_UNAUTHORIZED- See Also:
-
HTTP_INTERNAL_SERVER_ERROR
static final int HTTP_INTERNAL_SERVER_ERROR- See Also:
-
HANDLER_SERIALIZATION_METRICS_NAME
- See Also:
-
-
Method Details
-
apply
-
setRpcMetadata
Sets some general server information to return to the client in all responses.- Parameters:
metadata- Server-wide information
-