public class BinaryDatabaseInjector extends Object implements ServerInterceptor
BinaryDatabase to the current context| Modifier and Type | Field and Description |
|---|---|
static Context.Key<BinaryDatabase> |
BINARY_DATABASE_KEY
The
Context.Key to which the database reference is bound |
| Constructor and Description |
|---|
BinaryDatabaseInjector(BinaryDatabase binaryDatabase) |
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
interceptCall(ServerCall<ReqT,RespT> call,
Metadata headers,
ServerCallHandler<ReqT,RespT> next) |
public static final Context.Key<BinaryDatabase> BINARY_DATABASE_KEY
Context.Key to which the database reference is boundpublic BinaryDatabaseInjector(BinaryDatabase binaryDatabase)
binaryDatabase - The database to injectpublic <ReqT,RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT,RespT> call, Metadata headers, ServerCallHandler<ReqT,RespT> next)
interceptCall in interface ServerInterceptorCopyright © 2022 SiLA Java Developers. All rights reserved.