Package dev.vality.fistful.p2p.template
Class ManagementSrv.Client
java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.fistful.p2p.template.ManagementSrv.Client
- All Implemented Interfaces:
ManagementSrv.Iface
- Enclosing class:
- ManagementSrv
public static class ManagementSrv.Client extends org.apache.thrift.TServiceClient implements ManagementSrv.Iface
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classManagementSrv.Client.Factory -
Field Summary
Fields inherited from class org.apache.thrift.TServiceClient
iprot_, oprot_, seqid_ -
Constructor Summary
-
Method Summary
Modifier and Type Method Description P2PTemplateStatecreate(P2PTemplateParams params, Map<String,Value> context)P2PTransferStatecreateTransfer(String id, P2PTemplateTransferParams params, Map<String,Value> context)P2PTemplateStateget(String id, EventRange range)Map<String,Value>getContext(String id)QuotegetQuote(String id, P2PTemplateQuoteParams params)P2PTemplateStaterecvCreate()P2PTransferStaterecvCreateTransfer()P2PTemplateStaterecvGet()Map<String,Value>recvGetContext()QuoterecvGetQuote()voidrecvSetBlocking()voidsendCreate(P2PTemplateParams params, Map<String,Value> context)voidsendCreateTransfer(String id, P2PTemplateTransferParams params, Map<String,Value> context)voidsendGet(String id, EventRange range)voidsendGetContext(String id)voidsendGetQuote(String id, P2PTemplateQuoteParams params)voidsendSetBlocking(String id, Blocking value)voidsetBlocking(String id, Blocking value)Methods inherited from class org.apache.thrift.TServiceClient
getInputProtocol, getOutputProtocol, receiveBase, sendBase, sendBaseOneway
-
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
-
create
public P2PTemplateState create(P2PTemplateParams params, Map<String,Value> context) throws IdentityNotFound, CurrencyNotFound, PartyInaccessible, InvalidOperationAmount, org.apache.thrift.TException- Specified by:
createin interfaceManagementSrv.Iface- Throws:
IdentityNotFoundCurrencyNotFoundPartyInaccessibleInvalidOperationAmountorg.apache.thrift.TException
-
sendCreate
public void sendCreate(P2PTemplateParams params, Map<String,Value> context) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvCreate
public P2PTemplateState recvCreate() throws IdentityNotFound, CurrencyNotFound, PartyInaccessible, InvalidOperationAmount, org.apache.thrift.TException- Throws:
IdentityNotFoundCurrencyNotFoundPartyInaccessibleInvalidOperationAmountorg.apache.thrift.TException
-
get
public P2PTemplateState get(String id, EventRange range) throws P2PTemplateNotFound, org.apache.thrift.TException- Specified by:
getin interfaceManagementSrv.Iface- Throws:
P2PTemplateNotFoundorg.apache.thrift.TException
-
sendGet
- Throws:
org.apache.thrift.TException
-
recvGet
- Throws:
P2PTemplateNotFoundorg.apache.thrift.TException
-
getContext
public Map<String,Value> getContext(String id) throws P2PTemplateNotFound, org.apache.thrift.TException- Specified by:
getContextin interfaceManagementSrv.Iface- Throws:
P2PTemplateNotFoundorg.apache.thrift.TException
-
sendGetContext
- Throws:
org.apache.thrift.TException
-
recvGetContext
- Throws:
P2PTemplateNotFoundorg.apache.thrift.TException
-
setBlocking
public void setBlocking(String id, Blocking value) throws P2PTemplateNotFound, org.apache.thrift.TException- Specified by:
setBlockingin interfaceManagementSrv.Iface- Throws:
P2PTemplateNotFoundorg.apache.thrift.TException
-
sendSetBlocking
- Throws:
org.apache.thrift.TException
-
recvSetBlocking
- Throws:
P2PTemplateNotFoundorg.apache.thrift.TException
-
getQuote
public Quote getQuote(String id, P2PTemplateQuoteParams params) throws P2PTemplateNotFound, IdentityNotFound, ForbiddenOperationCurrency, ForbiddenOperationAmount, OperationNotPermitted, NoResourceInfo, org.apache.thrift.TException- Specified by:
getQuotein interfaceManagementSrv.Iface- Throws:
P2PTemplateNotFoundIdentityNotFoundForbiddenOperationCurrencyForbiddenOperationAmountOperationNotPermittedNoResourceInfoorg.apache.thrift.TException
-
sendGetQuote
public void sendGetQuote(String id, P2PTemplateQuoteParams params) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvGetQuote
public Quote recvGetQuote() throws P2PTemplateNotFound, IdentityNotFound, ForbiddenOperationCurrency, ForbiddenOperationAmount, OperationNotPermitted, NoResourceInfo, org.apache.thrift.TException- Throws:
P2PTemplateNotFoundIdentityNotFoundForbiddenOperationCurrencyForbiddenOperationAmountOperationNotPermittedNoResourceInfoorg.apache.thrift.TException
-
createTransfer
public P2PTransferState createTransfer(String id, P2PTemplateTransferParams params, Map<String,Value> context) throws P2PTemplateNotFound, IdentityNotFound, ForbiddenOperationCurrency, ForbiddenOperationAmount, OperationNotPermitted, NoResourceInfo, org.apache.thrift.TException- Specified by:
createTransferin interfaceManagementSrv.Iface- Throws:
P2PTemplateNotFoundIdentityNotFoundForbiddenOperationCurrencyForbiddenOperationAmountOperationNotPermittedNoResourceInfoorg.apache.thrift.TException
-
sendCreateTransfer
public void sendCreateTransfer(String id, P2PTemplateTransferParams params, Map<String,Value> context) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvCreateTransfer
public P2PTransferState recvCreateTransfer() throws P2PTemplateNotFound, IdentityNotFound, ForbiddenOperationCurrency, ForbiddenOperationAmount, OperationNotPermitted, NoResourceInfo, org.apache.thrift.TException- Throws:
P2PTemplateNotFoundIdentityNotFoundForbiddenOperationCurrencyForbiddenOperationAmountOperationNotPermittedNoResourceInfoorg.apache.thrift.TException
-