Skip to content
Snippets Groups Projects
Commit 9dae16f2 authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'OZG-5666 add method to create command without wait' (#22)...

Merge pull request 'OZG-5666 add method to create command without wait' (#22) from OZG-5666_create-command-without-wait into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-lib/api-lib/pulls/22


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents 54c5f79e 1c62af9f
No related branches found
No related tags found
No related merge requests found
...@@ -2,5 +2,7 @@ package de.ozgcloud.apilib.common.command; ...@@ -2,5 +2,7 @@ package de.ozgcloud.apilib.common.command;
public interface OzgCloudCommandService { public interface OzgCloudCommandService {
public OzgCloudCommand create(OzgCloudCommand commandToCreate);
public OzgCloudCommand createAndWaitUntilDone(OzgCloudCommand commandToCreate); public OzgCloudCommand createAndWaitUntilDone(OzgCloudCommand commandToCreate);
} }
...@@ -32,7 +32,8 @@ public class GrpcOzgCloudCommandService implements OzgCloudCommandService { ...@@ -32,7 +32,8 @@ public class GrpcOzgCloudCommandService implements OzgCloudCommandService {
return waitUntilDone(create(commandToCreate)); return waitUntilDone(create(commandToCreate));
} }
OzgCloudCommand create(OzgCloudCommand commandToCreate) { @Override
public OzgCloudCommand create(OzgCloudCommand commandToCreate) {
var created = getCommandServiceStub().createCommand(mapper.buildCreateCommandRequest(commandToCreate)); var created = getCommandServiceStub().createCommand(mapper.buildCreateCommandRequest(commandToCreate));
return mapper.fromGrpc(created.getCommand()); return mapper.fromGrpc(created.getCommand());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment