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 Classes Modifier and Type Interface Description static classHandler.HandlerResponse<T>Struct that encapsulates the context of the result of a request to Avatica.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHANDLER_SERIALIZATION_METRICS_NAMEstatic intHTTP_INTERNAL_SERVER_ERRORstatic intHTTP_OKstatic intHTTP_UNAUTHENTICATEDstatic intHTTP_UNAUTHORIZED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Handler.HandlerResponse<T>apply(T request)voidsetRpcMetadata(Service.RpcMetadataResponse metadata)Sets some general server information to return to the client in all responses.
-
-
-
Field Detail
-
HTTP_OK
static final int HTTP_OK
- See Also:
- Constant Field Values
-
HTTP_UNAUTHENTICATED
static final int HTTP_UNAUTHENTICATED
- See Also:
- Constant Field Values
-
HTTP_UNAUTHORIZED
static final int HTTP_UNAUTHORIZED
- See Also:
- Constant Field Values
-
HTTP_INTERNAL_SERVER_ERROR
static final int HTTP_INTERNAL_SERVER_ERROR
- See Also:
- Constant Field Values
-
HANDLER_SERIALIZATION_METRICS_NAME
static final java.lang.String HANDLER_SERIALIZATION_METRICS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
Handler.HandlerResponse<T> apply(T request)
-
setRpcMetadata
void setRpcMetadata(Service.RpcMetadataResponse metadata)
Sets some general server information to return to the client in all responses.- Parameters:
metadata- Server-wide information
-
-