public class HTLCAttempt extends Message<LightningApi.HTLCAttempt>
Message
,
LightningApi.HTLCAttempt
Modifier and Type | Class and Description |
---|---|
static class |
HTLCAttempt.HTLCStatus
Inner enum HTLCStatus for class HTLCAttempt
Generated Automatically.
|
builder, wrapperFactory
Constructor and Description |
---|
HTLCAttempt()
Empty Constructor
|
HTLCAttempt(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
HTLCAttempt(LightningApi.HTLCAttempt apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
long |
getAttemptId()
Getter for attemptId.
|
long |
getAttemptTimeNs()
Getter for attemptTimeNs.
|
Failure |
getFailure()
Getter for a list of failure.
|
byte[] |
getPreimage()
Getter for preimage.
|
long |
getResolveTimeNs()
Getter for resolveTimeNs.
|
Route |
getRoute()
Getter for a list of route.
|
HTLCAttempt.HTLCStatus |
getStatus()
Getter for status.
|
void |
setAttemptId(long value)
Setter for attemptId.
|
void |
setAttemptTimeNs(long value)
Setter for attemptTimeNs.
|
void |
setFailure(Failure value)
Setter for list of failure.
|
void |
setPreimage(byte[] value)
Setter for preimage.
|
void |
setResolveTimeNs(long value)
Setter for resolveTimeNs.
|
void |
setRoute(Route value)
Setter for list of route.
|
void |
setStatus(HTLCAttempt.HTLCStatus value)
Setter for status.
|
equals, getApiObject, getMessageName, hashCode, populateRepeatedFields, toJson, toJsonAsString, toString, validate
public HTLCAttempt()
public HTLCAttempt(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public HTLCAttempt(LightningApi.HTLCAttempt apiObject)
public long getAttemptId()
public void setAttemptId(long value)
public HTLCAttempt.HTLCStatus getStatus()
public void setStatus(HTLCAttempt.HTLCStatus value)
public Route getRoute() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setRoute(Route value)
public long getAttemptTimeNs()
public void setAttemptTimeNs(long value)
public long getResolveTimeNs()
public void setResolveTimeNs(long value)
public Failure getFailure() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setFailure(Failure value)
public byte[] getPreimage()
public void setPreimage(byte[] value)