public static interface Maintenance.Snapshot extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
write(OutputStream os)
Write backend snapshot to user provided OutputStream.
|
void write(OutputStream os) throws IOException, InterruptedException
write can only be called once; multiple calls on write results IOException thrown after first call.
this method blocks until farther snapshot data are available, end of stream is detected, or an exception is thrown.
ClosedSnapshotException - if snapshot has been closed.IOException - if write experiences any I/O issues.InterruptedException - if the write thread is interrupted.Copyright © 2017. All rights reserved.