Package org.ldk.structs
Class WriteableScore
- java.lang.Object
-
- org.ldk.structs.WriteableScore
-
public class WriteableScore extends Object
Refers to a scorer that is accessible under lock and also writeable to disk We need this trait to be able to pass in a scorer to `lightning-background-processor` that will enable us to use the Persister to persist it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
WriteableScore.WriteableScoreInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
Destroys the object, freeing associated resources.protected void
finalize()
LockableScore
get_lockable_score()
Gets the underlying LockableScore.static WriteableScore
new_impl(WriteableScore.WriteableScoreInterface arg, LockableScore.LockableScoreInterface LockableScore_impl)
byte[]
write()
Serialize the object into a byte array
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
destroy
public void destroy()
Destroys the object, freeing associated resources. After this call, any access to this object may result in a SEGFAULT or worse. You should generally NEVER call this method. You should let the garbage collector do this for you when it finalizes objects. However, it may be useful for types which represent locks and should be closed immediately to avoid holding locks until the GC runs.
-
new_impl
public static WriteableScore new_impl(WriteableScore.WriteableScoreInterface arg, LockableScore.LockableScoreInterface LockableScore_impl)
-
get_lockable_score
public LockableScore get_lockable_score()
Gets the underlying LockableScore.
-
write
public byte[] write()
Serialize the object into a byte array
-
-