public final class GrpcUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
constructGrpcAsyncStub(String packageName,
String serviceName,
io.grpc.Channel channel,
org.apache.camel.CamelContext context) |
static Object |
constructGrpcBlockingStub(String packageName,
String serviceName,
io.grpc.Channel channel,
org.apache.camel.CamelContext context) |
static String |
convertMethod2CamelCase(String method)
Migrated MixedLower function from the gRPC converting plugin source code
(https://github.com/grpc/grpc-java/blob/master/compiler/src/java_plugin/cpp/java_generator.cpp)
- decapitalize the first letter
- remove embedded underscores & capitalize the following letter
|
static void |
invokeAsyncMethod(Object asyncStubClass,
String invokeMethod,
Object request,
io.grpc.stub.StreamObserver responseObserver) |
static Object |
invokeSyncMethod(Object blockingStubClass,
String invokeMethod,
Object request) |
public static Object constructGrpcAsyncStub(String packageName, String serviceName, io.grpc.Channel channel, org.apache.camel.CamelContext context)
public static Object constructGrpcBlockingStub(String packageName, String serviceName, io.grpc.Channel channel, org.apache.camel.CamelContext context)
public static void invokeAsyncMethod(Object asyncStubClass, String invokeMethod, Object request, io.grpc.stub.StreamObserver responseObserver)
public static Object invokeSyncMethod(Object blockingStubClass, String invokeMethod, Object request)
public static String convertMethod2CamelCase(String method)
Apache Camel