Package com.streamlayer.triggers
Class TriggersGrpc.TriggersBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<TriggersGrpc.TriggersBlockingStub>
-
- com.streamlayer.triggers.TriggersGrpc.TriggersBlockingStub
-
- Enclosing class:
- TriggersGrpc
public static final class TriggersGrpc.TriggersBlockingStub extends io.grpc.stub.AbstractBlockingStub<TriggersGrpc.TriggersBlockingStub>
A stub to allow clients to do synchronous rpc calls to service Triggers.
-
-
Method Summary
-
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected TriggersGrpc.TriggersBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<TriggersGrpc.TriggersBlockingStub>
-
getMetadata
public GetMetadataResponse getMetadata(GetMetadataRequest request)
returns a list of events along with allowed compare operations, targets etc
-
createTrigger
public CreateTriggerResponse createTrigger(CreateTriggerRequest request)
creates a trigger attached to some entity (e.g. moderation) trigger has conditions which shall be matched to turn it into activated state
-
createTriggers
public CreateTriggersResponse createTriggers(CreateTriggersRequest request)
-
updateTrigger
public UpdateTriggerResponse updateTrigger(UpdateTriggerRequest request)
updates trigger
-
enableTrigger
public EnableTriggerResponse enableTrigger(EnableTriggerRequest request)
set trigger enabled
-
disableTrigger
public DisableTriggerResponse disableTrigger(DisableTriggerRequest request)
set trigger disabled
-
deleteTrigger
public DeleteTriggerResponse deleteTrigger(DeleteTriggerRequest request)
deletes trigger and everything related to it (including subscriptions)
-
getTrigger
public GetTriggerResponse getTrigger(GetTriggerRequest request)
returns an instance of trigger by its identifier
-
listTriggers
public ListTriggerResponse listTriggers(ListTriggersRequest request)
returns a list of triggers attached to the scope (game) or entity (e.g. moderation)
-
subscribe
public SubscribeResponse subscribe(SubscribeRequest request)
creates a subscription for trigger activation subscribed entity will be notified upon activation by sending amqp message with pre-defined payload
-
triggerActivations
public TriggerActivationsResponse triggerActivations(TriggerActivationsRequest request)
returns trigger activations history
-
listSubscriptions
public ListSubscriptionResponse listSubscriptions(ListSubscriptionsRequest request)
returns a list of subscriptions attached to the trigger
-
cancelSubscription
public CancelSubscriptionResponse cancelSubscription(CancelSubscriptionRequest request)
cancels the subscription of some entity to the trigger activation
-
updateEntity
public UpdateEntityResponse updateEntity(UpdateEntityRequest request)
-
getEntity
public GetEntityResponse getEntity(GetEntityRequest request)
-
enableEntity
public EnableEntityResponse enableEntity(EnableEntityRequest request)
-
disableEntity
public DisableEntityResponse disableEntity(DisableEntityRequest request)
-
getSportLimits
public GetSportLimitsResponse getSportLimits(GetSportLimitsRequest request)
-
setEntityLimits
public SetEntityLimitsResponse setEntityLimits(SetEntityLimitsRequest request)
-
getEntityLimits
public GetEntityLimitsResponse getEntityLimits(GetEntityLimitsRequest request)
-
-