Skip to content

Commit

Permalink
~ WIP service refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinherron committed Apr 8, 2023
1 parent c9fd7d8 commit 8cf05d8
Showing 1 changed file with 18 additions and 0 deletions.
Expand Up @@ -1339,6 +1339,24 @@ public CompletableFuture<DeleteSubscriptionsResponse> deleteSubscriptionsAsync(L
});
}

public TransferSubscriptionsResponse transferSubscriptions(
List<UInteger> subscriptionIds,
boolean sendInitialValues
) throws UaException {

try {
CompletableFuture<TransferSubscriptionsResponse> future = transferSubscriptionsAsync(
subscriptionIds,
sendInitialValues
);

return future.get();
} catch (InterruptedException | ExecutionException e) {
throw UaException.extract(e)
.orElse(new UaException(StatusCodes.Bad_UnexpectedError, e));
}
}

@Override
public CompletableFuture<TransferSubscriptionsResponse> transferSubscriptionsAsync(
List<UInteger> subscriptionIds,
Expand Down

0 comments on commit 8cf05d8

Please sign in to comment.