Package io.dapr.v1
Class DaprGrpc.DaprStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<DaprGrpc.DaprStub>
-
- io.dapr.v1.DaprGrpc.DaprStub
-
- Enclosing class:
- DaprGrpc
public static final class DaprGrpc.DaprStub extends io.grpc.stub.AbstractAsyncStub<DaprGrpc.DaprStub>
Dapr service provides APIs to user application to access Dapr building blocks.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DaprGrpc.DaprStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidbulkPublishEventAlpha1(DaprProtos.BulkPublishRequest request, io.grpc.stub.StreamObserver<DaprProtos.BulkPublishResponse> responseObserver)Bulk Publishes multiple events to the specified topic.voiddeleteBulkState(DaprProtos.DeleteBulkStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes a bulk of state items for a list of keysvoiddeleteState(DaprProtos.DeleteStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes the state for a specific key.voidexecuteActorStateTransaction(DaprProtos.ExecuteActorStateTransactionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Executes state transactions for a specified actorvoidexecuteStateTransaction(DaprProtos.ExecuteStateTransactionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Executes transactions for a specified storevoidgetActorState(DaprProtos.GetActorStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetActorStateResponse> responseObserver)Gets the state for a specific actor.voidgetBulkSecret(DaprProtos.GetBulkSecretRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetBulkSecretResponse> responseObserver)Gets a bulk of secretsvoidgetBulkState(DaprProtos.GetBulkStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetBulkStateResponse> responseObserver)Gets a bulk of state items for a list of keysvoidgetConfigurationAlpha1(DaprProtos.GetConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetConfigurationResponse> responseObserver)GetConfiguration gets configuration from configuration store.voidgetMetadata(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<DaprProtos.GetMetadataResponse> responseObserver)Gets metadata of the sidecarvoidgetSecret(DaprProtos.GetSecretRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetSecretResponse> responseObserver)Gets secrets from secret stores.voidgetState(DaprProtos.GetStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetStateResponse> responseObserver)Gets the state for a specific key.voidgetWorkflowAlpha1(DaprProtos.GetWorkflowRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetWorkflowResponse> responseObserver)Get Workflow detailsvoidinvokeActor(DaprProtos.InvokeActorRequest request, io.grpc.stub.StreamObserver<DaprProtos.InvokeActorResponse> responseObserver)InvokeActor calls a method on an actor.voidinvokeBinding(DaprProtos.InvokeBindingRequest request, io.grpc.stub.StreamObserver<DaprProtos.InvokeBindingResponse> responseObserver)Invokes binding data to specific output bindingsvoidinvokeService(DaprProtos.InvokeServiceRequest request, io.grpc.stub.StreamObserver<CommonProtos.InvokeResponse> responseObserver)Invokes a method on a remote Dapr app.voidpublishEvent(DaprProtos.PublishEventRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Publishes events to the specific topic.voidqueryStateAlpha1(DaprProtos.QueryStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.QueryStateResponse> responseObserver)Queries the state.voidregisterActorReminder(DaprProtos.RegisterActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Register an actor reminder.voidregisterActorTimer(DaprProtos.RegisterActorTimerRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Register an actor timer.voidrenameActorReminder(DaprProtos.RenameActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Rename an actor reminder.voidsaveState(DaprProtos.SaveStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Saves the state for a specific key.voidsetMetadata(DaprProtos.SetMetadataRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Sets value in extended metadata of the sidecarvoidshutdown(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Shutdown the sidecarvoidstartWorkflowAlpha1(DaprProtos.StartWorkflowRequest request, io.grpc.stub.StreamObserver<DaprProtos.WorkflowReference> responseObserver)Start WorkflowvoidsubscribeConfigurationAlpha1(DaprProtos.SubscribeConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.SubscribeConfigurationResponse> responseObserver)SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc streamvoidterminateWorkflowAlpha1(DaprProtos.TerminateWorkflowRequest request, io.grpc.stub.StreamObserver<DaprProtos.TerminateWorkflowResponse> responseObserver)Terminate WorkflowvoidtryLockAlpha1(DaprProtos.TryLockRequest request, io.grpc.stub.StreamObserver<DaprProtos.TryLockResponse> responseObserver)TryLockAlpha1 tries to get a lock with an expiry.voidunlockAlpha1(DaprProtos.UnlockRequest request, io.grpc.stub.StreamObserver<DaprProtos.UnlockResponse> responseObserver)UnlockAlpha1 unlocks a lock.voidunregisterActorReminder(DaprProtos.UnregisterActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Unregister an actor reminder.voidunregisterActorTimer(DaprProtos.UnregisterActorTimerRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Unregister an actor timer.voidunsubscribeConfigurationAlpha1(DaprProtos.UnsubscribeConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.UnsubscribeConfigurationResponse> responseObserver)UnSubscribeConfiguration unsubscribe the subscription of configuration
-
-
-
Method Detail
-
build
protected DaprGrpc.DaprStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<DaprGrpc.DaprStub>
-
invokeService
public void invokeService(DaprProtos.InvokeServiceRequest request, io.grpc.stub.StreamObserver<CommonProtos.InvokeResponse> responseObserver)
Invokes a method on a remote Dapr app. Deprecated: Use proxy mode service invocation instead.
-
getState
public void getState(DaprProtos.GetStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetStateResponse> responseObserver)
Gets the state for a specific key.
-
getBulkState
public void getBulkState(DaprProtos.GetBulkStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetBulkStateResponse> responseObserver)
Gets a bulk of state items for a list of keys
-
saveState
public void saveState(DaprProtos.SaveStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Saves the state for a specific key.
-
queryStateAlpha1
public void queryStateAlpha1(DaprProtos.QueryStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.QueryStateResponse> responseObserver)
Queries the state.
-
deleteState
public void deleteState(DaprProtos.DeleteStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the state for a specific key.
-
deleteBulkState
public void deleteBulkState(DaprProtos.DeleteBulkStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a bulk of state items for a list of keys
-
executeStateTransaction
public void executeStateTransaction(DaprProtos.ExecuteStateTransactionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Executes transactions for a specified store
-
publishEvent
public void publishEvent(DaprProtos.PublishEventRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Publishes events to the specific topic.
-
bulkPublishEventAlpha1
public void bulkPublishEventAlpha1(DaprProtos.BulkPublishRequest request, io.grpc.stub.StreamObserver<DaprProtos.BulkPublishResponse> responseObserver)
Bulk Publishes multiple events to the specified topic.
-
invokeBinding
public void invokeBinding(DaprProtos.InvokeBindingRequest request, io.grpc.stub.StreamObserver<DaprProtos.InvokeBindingResponse> responseObserver)
Invokes binding data to specific output bindings
-
getSecret
public void getSecret(DaprProtos.GetSecretRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetSecretResponse> responseObserver)
Gets secrets from secret stores.
-
getBulkSecret
public void getBulkSecret(DaprProtos.GetBulkSecretRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetBulkSecretResponse> responseObserver)
Gets a bulk of secrets
-
registerActorTimer
public void registerActorTimer(DaprProtos.RegisterActorTimerRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Register an actor timer.
-
unregisterActorTimer
public void unregisterActorTimer(DaprProtos.UnregisterActorTimerRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Unregister an actor timer.
-
registerActorReminder
public void registerActorReminder(DaprProtos.RegisterActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Register an actor reminder.
-
unregisterActorReminder
public void unregisterActorReminder(DaprProtos.UnregisterActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Unregister an actor reminder.
-
renameActorReminder
public void renameActorReminder(DaprProtos.RenameActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Rename an actor reminder.
-
getActorState
public void getActorState(DaprProtos.GetActorStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetActorStateResponse> responseObserver)
Gets the state for a specific actor.
-
executeActorStateTransaction
public void executeActorStateTransaction(DaprProtos.ExecuteActorStateTransactionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Executes state transactions for a specified actor
-
invokeActor
public void invokeActor(DaprProtos.InvokeActorRequest request, io.grpc.stub.StreamObserver<DaprProtos.InvokeActorResponse> responseObserver)
InvokeActor calls a method on an actor.
-
getConfigurationAlpha1
public void getConfigurationAlpha1(DaprProtos.GetConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetConfigurationResponse> responseObserver)
GetConfiguration gets configuration from configuration store.
-
subscribeConfigurationAlpha1
public void subscribeConfigurationAlpha1(DaprProtos.SubscribeConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.SubscribeConfigurationResponse> responseObserver)
SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream
-
unsubscribeConfigurationAlpha1
public void unsubscribeConfigurationAlpha1(DaprProtos.UnsubscribeConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.UnsubscribeConfigurationResponse> responseObserver)
UnSubscribeConfiguration unsubscribe the subscription of configuration
-
tryLockAlpha1
public void tryLockAlpha1(DaprProtos.TryLockRequest request, io.grpc.stub.StreamObserver<DaprProtos.TryLockResponse> responseObserver)
TryLockAlpha1 tries to get a lock with an expiry.
-
unlockAlpha1
public void unlockAlpha1(DaprProtos.UnlockRequest request, io.grpc.stub.StreamObserver<DaprProtos.UnlockResponse> responseObserver)
UnlockAlpha1 unlocks a lock.
-
getMetadata
public void getMetadata(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<DaprProtos.GetMetadataResponse> responseObserver)Gets metadata of the sidecar
-
setMetadata
public void setMetadata(DaprProtos.SetMetadataRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Sets value in extended metadata of the sidecar
-
startWorkflowAlpha1
public void startWorkflowAlpha1(DaprProtos.StartWorkflowRequest request, io.grpc.stub.StreamObserver<DaprProtos.WorkflowReference> responseObserver)
Start Workflow
-
getWorkflowAlpha1
public void getWorkflowAlpha1(DaprProtos.GetWorkflowRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetWorkflowResponse> responseObserver)
Get Workflow details
-
terminateWorkflowAlpha1
public void terminateWorkflowAlpha1(DaprProtos.TerminateWorkflowRequest request, io.grpc.stub.StreamObserver<DaprProtos.TerminateWorkflowResponse> responseObserver)
Terminate Workflow
-
shutdown
public void shutdown(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Shutdown the sidecar
-
-