Class AccounterSrv.AsyncClient

java.lang.Object
org.apache.thrift.async.TAsyncClient
dev.vality.damsel.accounter.AccounterSrv.AsyncClient
All Implemented Interfaces:
AccounterSrv.AsyncIface
Enclosing class:
AccounterSrv

public static class AccounterSrv.AsyncClient extends org.apache.thrift.async.TAsyncClient implements AccounterSrv.AsyncIface
  • Constructor Details

    • AsyncClient

      public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport)
  • Method Details

    • hold

      public void hold(PostingPlanChange plan_change, org.apache.thrift.async.AsyncMethodCallback<PostingPlanLog> resultHandler) throws org.apache.thrift.TException
      Specified by:
      hold in interface AccounterSrv.AsyncIface
      Throws:
      org.apache.thrift.TException
    • commitPlan

      public void commitPlan(PostingPlan plan, org.apache.thrift.async.AsyncMethodCallback<PostingPlanLog> resultHandler) throws org.apache.thrift.TException
      Specified by:
      commitPlan in interface AccounterSrv.AsyncIface
      Throws:
      org.apache.thrift.TException
    • rollbackPlan

      public void rollbackPlan(PostingPlan plan, org.apache.thrift.async.AsyncMethodCallback<PostingPlanLog> resultHandler) throws org.apache.thrift.TException
      Specified by:
      rollbackPlan in interface AccounterSrv.AsyncIface
      Throws:
      org.apache.thrift.TException
    • getPlan

      public void getPlan(String id, org.apache.thrift.async.AsyncMethodCallback<PostingPlan> resultHandler) throws org.apache.thrift.TException
      Specified by:
      getPlan in interface AccounterSrv.AsyncIface
      Throws:
      org.apache.thrift.TException
    • getAccountByID

      public void getAccountByID(long id, org.apache.thrift.async.AsyncMethodCallback<Account> resultHandler) throws org.apache.thrift.TException
      Specified by:
      getAccountByID in interface AccounterSrv.AsyncIface
      Throws:
      org.apache.thrift.TException
    • createAccount

      public void createAccount(AccountPrototype prototype, org.apache.thrift.async.AsyncMethodCallback<Long> resultHandler) throws org.apache.thrift.TException
      Specified by:
      createAccount in interface AccounterSrv.AsyncIface
      Throws:
      org.apache.thrift.TException
    • getAccountBalance

      public void getAccountBalance(long id, String to_time, org.apache.thrift.async.AsyncMethodCallback<Long> resultHandler) throws org.apache.thrift.TException
      Specified by:
      getAccountBalance in interface AccounterSrv.AsyncIface
      Throws:
      org.apache.thrift.TException
    • getAccountBalanceDiff

      public void getAccountBalanceDiff(long id, String from_time, String to_time, org.apache.thrift.async.AsyncMethodCallback<Long> resultHandler) throws org.apache.thrift.TException
      Specified by:
      getAccountBalanceDiff in interface AccounterSrv.AsyncIface
      Throws:
      org.apache.thrift.TException