Package com.iotics.api
Class FeedAPIGrpc.FeedAPIStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<FeedAPIGrpc.FeedAPIStub>
com.iotics.api.FeedAPIGrpc.FeedAPIStub
- Enclosing class:
- FeedAPIGrpc
public static final class FeedAPIGrpc.FeedAPIStub
extends io.grpc.stub.AbstractAsyncStub<FeedAPIGrpc.FeedAPIStub>
Create a feed owned by the provided twin. A twin may have one or more feeds. Any twin can subscribe to a feed (access control permitting). A feed generates data in a 1-to-many relationship: one feed may produce data that is used by many consumers (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 FeedAPIGrpc.FeedAPIStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateFeed(CreateFeedRequest request, io.grpc.stub.StreamObserver<CreateFeedResponse> responseObserver) Creates a feed owned by a twin.voiddeleteFeed(DeleteFeedRequest request, io.grpc.stub.StreamObserver<DeleteFeedResponse> responseObserver) Deletes a feed owned by a twin.voiddescribeFeed(DescribeFeedRequest request, io.grpc.stub.StreamObserver<DescribeFeedResponse> responseObserver) Describes a feed.voidlistAllFeeds(ListAllFeedsRequest request, io.grpc.stub.StreamObserver<ListAllFeedsResponse> responseObserver) Lists all feeds owned by a twin.voidshareFeedData(ShareFeedDataRequest request, io.grpc.stub.StreamObserver<ShareFeedDataResponse> responseObserver) Shares a new sample of data for the given feed which any (interest) subscribers can receive.voidupdateFeed(UpdateFeedRequest request, io.grpc.stub.StreamObserver<UpdateFeedResponse> responseObserver) Updates attributes of a feed, including its metadata.Methods inherited from class io.grpc.stub.AbstractAsyncStub
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
- Specified by:
buildin classio.grpc.stub.AbstractStub<FeedAPIGrpc.FeedAPIStub>
-
createFeed
public void createFeed(CreateFeedRequest request, io.grpc.stub.StreamObserver<CreateFeedResponse> responseObserver) Creates a feed owned by a twin. (Idempotent)
-
deleteFeed
public void deleteFeed(DeleteFeedRequest request, io.grpc.stub.StreamObserver<DeleteFeedResponse> responseObserver) Deletes a feed owned by a twin. (Idempotent)
-
updateFeed
public void updateFeed(UpdateFeedRequest request, io.grpc.stub.StreamObserver<UpdateFeedResponse> responseObserver) Updates attributes of a feed, including its metadata.
-
listAllFeeds
public void listAllFeeds(ListAllFeedsRequest request, io.grpc.stub.StreamObserver<ListAllFeedsResponse> responseObserver) Lists all feeds owned by a twin.
-
describeFeed
public void describeFeed(DescribeFeedRequest request, io.grpc.stub.StreamObserver<DescribeFeedResponse> responseObserver) Describes a feed. (local and remote)
-