PersistenceObjectStore
instances now, and when we need sync behaviour we just wait@Deprecated
public class MementoFileWriterSync<T>
extends java.lang.Object
Constructor and Description |
---|
MementoFileWriterSync(java.io.File file,
MementoSerializer<? super T> serializer)
Deprecated.
|
MementoFileWriterSync(java.io.File file,
MementoSerializer<? super T> serializer,
java.lang.String tmpFileSuffix)
Deprecated.
|
public MementoFileWriterSync(java.io.File file, MementoSerializer<? super T> serializer)
file
- serializer
- public MementoFileWriterSync(java.io.File file, MementoSerializer<? super T> serializer, java.lang.String tmpFileSuffix)
public boolean exists()
public void write(T val)
public void append(T val)
public void delete()
public void waitForWriteCompleted(Duration timeout) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public java.lang.String toString()
toString
in class java.lang.Object