BrooklynMementoPersisterToMultiFile,
impl largely moved to FileBasedStoreObjectAccessor@Deprecated
public class MementoFileWriter<T>
extends java.lang.Object
| Constructor and Description |
|---|
MementoFileWriter(java.io.File file,
com.google.common.util.concurrent.ListeningExecutorService executor,
MementoSerializer<? super T> serializer)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
void |
waitForWriteCompleted(Duration timeout)
Deprecated.
|
void |
waitForWriteCompleted(long timeout,
java.util.concurrent.TimeUnit unit)
Deprecated.
This method must only be used for testing.
|
void |
write(T val)
Deprecated.
|
public MementoFileWriter(java.io.File file,
com.google.common.util.concurrent.ListeningExecutorService executor,
MementoSerializer<? super T> serializer)
file - executor - A sequential executor (e.g. SingleThreadedExecutor, or equivalent)serializer - public void write(T val)
public void delete()
public void waitForWriteCompleted(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.TimeoutException
java.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionpublic void waitForWriteCompleted(Duration timeout) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionpublic java.lang.String toString()
toString in class java.lang.Object