Class TwinAPIGrpc.TwinAPIImplBase

java.lang.Object
com.iotics.api.TwinAPIGrpc.TwinAPIImplBase
All Implemented Interfaces:
io.grpc.BindableService
Enclosing class:
TwinAPIGrpc

public abstract static class TwinAPIGrpc.TwinAPIImplBase extends Object implements io.grpc.BindableService
 TwinAPI enables creation and management of Iotics twins.
 Services only affect local resources, unless stated otherwise.
 
  • Constructor Details

    • TwinAPIImplBase

      public TwinAPIImplBase()
  • Method Details

    • createTwin

      public void createTwin(CreateTwinRequest request, io.grpc.stub.StreamObserver<CreateTwinResponse> responseObserver)
       CreateTwin creates a twin.
       
    • upsertTwin

      public void upsertTwin(UpsertTwinRequest request, io.grpc.stub.StreamObserver<UpsertTwinResponse> responseObserver)
       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 void deleteTwin(DeleteTwinRequest request, io.grpc.stub.StreamObserver<DeleteTwinResponse> responseObserver)
       DeleteTwin deletes a twin.
       
    • updateTwin

      public void updateTwin(UpdateTwinRequest request, io.grpc.stub.StreamObserver<UpdateTwinResponse> responseObserver)
       UpdateTwin updates a twin (partial update).
       
    • describeTwin

      public void describeTwin(DescribeTwinRequest request, io.grpc.stub.StreamObserver<DescribeTwinResponse> responseObserver)
       Describes a twin. (local and remote)
       
    • listAllTwins

      public void listAllTwins(ListAllTwinsRequest request, io.grpc.stub.StreamObserver<ListAllTwinsResponse> responseObserver)
       List all twins.
       
    • bindService

      public final io.grpc.ServerServiceDefinition bindService()
      Specified by:
      bindService in interface io.grpc.BindableService