Package com.iotics.api
Class TwinAPIGrpc.TwinAPIFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<TwinAPIGrpc.TwinAPIFutureStub>
com.iotics.api.TwinAPIGrpc.TwinAPIFutureStub
- Enclosing class:
- TwinAPIGrpc
public static final class TwinAPIGrpc.TwinAPIFutureStub
extends io.grpc.stub.AbstractFutureStub<TwinAPIGrpc.TwinAPIFutureStub>
TwinAPI enables creation and management of Iotics twins. Services only affect local resources, unless stated otherwise.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected TwinAPIGrpc.TwinAPIFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<CreateTwinResponse>createTwin(CreateTwinRequest request) CreateTwin creates a twin.com.google.common.util.concurrent.ListenableFuture<DeleteTwinResponse>deleteTwin(DeleteTwinRequest request) DeleteTwin deletes a twin.com.google.common.util.concurrent.ListenableFuture<DescribeTwinResponse>describeTwin(DescribeTwinRequest request) Describes a twin.com.google.common.util.concurrent.ListenableFuture<ListAllTwinsResponse>listAllTwins(ListAllTwinsRequest request) List all twins.com.google.common.util.concurrent.ListenableFuture<UpdateTwinResponse>updateTwin(UpdateTwinRequest request) UpdateTwin updates a twin (partial update).com.google.common.util.concurrent.ListenableFuture<UpsertTwinResponse>upsertTwin(UpsertTwinRequest request) UpsertTwin creates or update a twin with its metadata + the twin feeds with their metadata.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
protected TwinAPIGrpc.TwinAPIFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<TwinAPIGrpc.TwinAPIFutureStub>
-
createTwin
public com.google.common.util.concurrent.ListenableFuture<CreateTwinResponse> createTwin(CreateTwinRequest request) CreateTwin creates a twin.
-
upsertTwin
public com.google.common.util.concurrent.ListenableFuture<UpsertTwinResponse> upsertTwin(UpsertTwinRequest request) UpsertTwin creates or update a twin with its metadata + the twin feeds with their metadata. The full state is applied (ie. if the operation succeeds the state of the twin/feeds will be the one described in the payload)
-
deleteTwin
public com.google.common.util.concurrent.ListenableFuture<DeleteTwinResponse> deleteTwin(DeleteTwinRequest request) DeleteTwin deletes a twin.
-
updateTwin
public com.google.common.util.concurrent.ListenableFuture<UpdateTwinResponse> updateTwin(UpdateTwinRequest request) UpdateTwin updates a twin (partial update).
-
describeTwin
public com.google.common.util.concurrent.ListenableFuture<DescribeTwinResponse> describeTwin(DescribeTwinRequest request) Describes a twin. (local and remote)
-
listAllTwins
public com.google.common.util.concurrent.ListenableFuture<ListAllTwinsResponse> listAllTwins(ListAllTwinsRequest request) List all twins.
-