public static class PaymentChannelClient.DefaultClientChannelProperties extends java.lang.Object implements IPaymentChannelClient.ClientChannelProperties
| Constructor and Description |
|---|
DefaultClientChannelProperties() |
| Modifier and Type | Method and Description |
|---|---|
Coin |
acceptableMinPayment()
The maximum acceptable min payment.
|
SendRequest |
modifyContractSendRequest(SendRequest sendRequest)
Modify the sendRequest used for the contract.
|
long |
timeWindow()
The time in seconds, relative to now, on how long this channel should be kept open.
|
PaymentChannelClient.VersionSelector |
versionSelector()
An enum indicating which versions to support:
VERSION_1: use only version 1 of the protocol
VERSION_2_ALLOW_1: suggest version 2 but allow downgrade to version 1
VERSION_2: suggest version 2 and enforce use of version 2
|
public SendRequest modifyContractSendRequest(SendRequest sendRequest)
IPaymentChannelClient.ClientChannelPropertiesmodifyContractSendRequest in interface IPaymentChannelClient.ClientChannelPropertiessendRequest - the current sendRequest.public Coin acceptableMinPayment()
IPaymentChannelClient.ClientChannelPropertiesacceptableMinPayment in interface IPaymentChannelClient.ClientChannelPropertiespublic long timeWindow()
IPaymentChannelClient.ClientChannelPropertiesIPaymentChannelClient.ClientConnection.acceptExpireTime(long)timeWindow in interface IPaymentChannelClient.ClientChannelPropertiespublic PaymentChannelClient.VersionSelector versionSelector()
IPaymentChannelClient.ClientChannelPropertiesversionSelector in interface IPaymentChannelClient.ClientChannelProperties