Class 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.
    • Method Detail

      • 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.
      • get_lockable_score

        public LockableScore get_lockable_score()
        Gets the underlying LockableScore.
      • write

        public byte[] write()
        Serialize the object into a byte array