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.ClientChannelProperties
modifyContractSendRequest
in interface IPaymentChannelClient.ClientChannelProperties
sendRequest
- the current sendRequest.public Coin acceptableMinPayment()
IPaymentChannelClient.ClientChannelProperties
acceptableMinPayment
in interface IPaymentChannelClient.ClientChannelProperties
public long timeWindow()
IPaymentChannelClient.ClientChannelProperties
IPaymentChannelClient.ClientConnection.acceptExpireTime(long)
timeWindow
in interface IPaymentChannelClient.ClientChannelProperties
public PaymentChannelClient.VersionSelector versionSelector()
IPaymentChannelClient.ClientChannelProperties
versionSelector
in interface IPaymentChannelClient.ClientChannelProperties