Class SatoriGrpc.SatoriStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SatoriGrpc.SatoriStub>
com.heroiclabs.satori.api.SatoriGrpc.SatoriStub
Enclosing class:
SatoriGrpc

public static final class SatoriGrpc.SatoriStub extends io.grpc.stub.AbstractAsyncStub<SatoriGrpc.SatoriStub>

 The GRPC protocol service for Satori built with GRPC.
 
  • 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 Type
    Method
    Description
    void
    authenticate(AuthenticateRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
    Authenticate against the server.
    void
    authenticateLogout(AuthenticateLogoutRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver)
    Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user.
    void
    authenticateRefresh(AuthenticateRefreshRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
    Refresh a user's session using a refresh token retrieved from a previous authentication request.
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    deleteIdentity(Empty request, io.grpc.stub.StreamObserver<Empty> responseObserver)
    Delete the caller's identity and associated data.
    void
    event(EventRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver)
    Publish an event for this session.
    void
    getExperiments(GetExperimentsRequest request, io.grpc.stub.StreamObserver<ExperimentList> responseObserver)
    Get or list all available experiments for this identity.
    void
    getFlags(GetFlagsRequest request, io.grpc.stub.StreamObserver<FlagList> responseObserver)
    List all available flags for this identity.
    void
    getLiveEvents(GetLiveEventsRequest request, io.grpc.stub.StreamObserver<LiveEventList> responseObserver)
    List available live events.
    void
    healthcheck(Empty request, io.grpc.stub.StreamObserver<Empty> responseObserver)
    A healthcheck which load balancers can use to check the service.
    void
    identify(IdentifyRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
    Enrich/replace the current session with new identifier.
    void
    listProperties(Empty request, io.grpc.stub.StreamObserver<Properties> responseObserver)
    List properties associated with this identity.
    void
    readycheck(Empty request, io.grpc.stub.StreamObserver<Empty> responseObserver)
    A readycheck which load balancers can use to check the service.
    void
    updateProperties(UpdatePropertiesRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver)
    Update identity properties.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected SatoriGrpc.SatoriStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SatoriGrpc.SatoriStub>
    • authenticate

      public void authenticate(AuthenticateRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
       Authenticate against the server.
       
    • authenticateLogout

      public void authenticateLogout(AuthenticateLogoutRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver)
       Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user.
       
    • authenticateRefresh

      public void authenticateRefresh(AuthenticateRefreshRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
       Refresh a user's session using a refresh token retrieved from a previous authentication request.
       
    • deleteIdentity

      public void deleteIdentity(Empty request, io.grpc.stub.StreamObserver<Empty> responseObserver)
       Delete the caller's identity and associated data.
       
    • event

      public void event(EventRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver)
       Publish an event for this session.
       
    • getExperiments

      public void getExperiments(GetExperimentsRequest request, io.grpc.stub.StreamObserver<ExperimentList> responseObserver)
       Get or list all available experiments for this identity.
       
    • getFlags

      public void getFlags(GetFlagsRequest request, io.grpc.stub.StreamObserver<FlagList> responseObserver)
       List all available flags for this identity.
       
    • getLiveEvents

      public void getLiveEvents(GetLiveEventsRequest request, io.grpc.stub.StreamObserver<LiveEventList> responseObserver)
       List available live events.
       
    • healthcheck

      public void healthcheck(Empty request, io.grpc.stub.StreamObserver<Empty> responseObserver)
       A healthcheck which load balancers can use to check the service.
       
    • identify

      public void identify(IdentifyRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
       Enrich/replace the current session with new identifier.
       
    • listProperties

      public void listProperties(Empty request, io.grpc.stub.StreamObserver<Properties> responseObserver)
       List properties associated with this identity.
       
    • readycheck

      public void readycheck(Empty request, io.grpc.stub.StreamObserver<Empty> responseObserver)
       A readycheck which load balancers can use to check the service.
       
    • updateProperties

      public void updateProperties(UpdatePropertiesRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver)
       Update identity properties.