Class EventSinkSrv.Client

java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.damsel.payment_processing.EventSinkSrv.Client
All Implemented Interfaces:
EventSinkSrv.Iface
Enclosing class:
EventSinkSrv

public static class EventSinkSrv.Client
extends org.apache.thrift.TServiceClient
implements EventSinkSrv.Iface
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  EventSinkSrv.Client.Factory  
  • Field Summary

    Fields inherited from class org.apache.thrift.TServiceClient

    iprot_, oprot_, seqid_
  • Constructor Summary

    Constructors
    Constructor Description
    Client​(org.apache.thrift.protocol.TProtocol prot)  
    Client​(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot)  
  • Method Summary

    Modifier and Type Method Description
    List<Event> getEvents​(EventRange range)
    Получить последовательный набор событий из истории системы, от более ранних к более поздним, из диапазона, заданного `range`.
    long getLastEventID()
    Получить идентификатор наиболее позднего известного на момент исполнения запроса события.
    List<Event> recvGetEvents()  
    long recvGetLastEventID()  
    void sendGetEvents​(EventRange range)  
    void sendGetLastEventID()  

    Methods inherited from class org.apache.thrift.TServiceClient

    getInputProtocol, getOutputProtocol, receiveBase, sendBase, sendBaseOneway

    Methods inherited from class java.lang.Object

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

    • Client

      public Client​(org.apache.thrift.protocol.TProtocol prot)
    • Client

      public Client​(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot)
  • Method Details

    • getEvents

      public List<Event> getEvents​(EventRange range) throws EventNotFound, InvalidRequest, org.apache.thrift.TException
      Description copied from interface: EventSinkSrv.Iface
      Получить последовательный набор событий из истории системы, от более ранних к более поздним, из диапазона, заданного `range`. Результат выполнения запроса может содержать от `0` до `range.limit` событий. Если в `range.after` указан идентификатор неизвестного события, то есть события, не наблюдаемого клиентом ранее в известной ему истории, бросится исключение `EventNotFound`.
      Specified by:
      getEvents in interface EventSinkSrv.Iface
      Throws:
      EventNotFound
      InvalidRequest
      org.apache.thrift.TException
    • sendGetEvents

      public void sendGetEvents​(EventRange range) throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvGetEvents

      public List<Event> recvGetEvents() throws EventNotFound, InvalidRequest, org.apache.thrift.TException
      Throws:
      EventNotFound
      InvalidRequest
      org.apache.thrift.TException
    • getLastEventID

      public long getLastEventID() throws NoLastEvent, org.apache.thrift.TException
      Description copied from interface: EventSinkSrv.Iface
      Получить идентификатор наиболее позднего известного на момент исполнения запроса события.
      Specified by:
      getLastEventID in interface EventSinkSrv.Iface
      Throws:
      NoLastEvent
      org.apache.thrift.TException
    • sendGetLastEventID

      public void sendGetLastEventID() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvGetLastEventID

      public long recvGetLastEventID() throws NoLastEvent, org.apache.thrift.TException
      Throws:
      NoLastEvent
      org.apache.thrift.TException