T - type of the returned state handle.public abstract class NonClosingCheckpointOutputStream<T extends StreamStateHandle> extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected CheckpointStateOutputStream |
delegate |
| Constructor and Description |
|---|
NonClosingCheckpointOutputStream(CheckpointStateOutputStream delegate) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.util.ResourceGuard.Lease |
acquireLease()
Returns a
ResourceGuard.Lease that prevents closing this
stream. |
void |
close() |
void |
flush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected final CheckpointStateOutputStream delegate
public NonClosingCheckpointOutputStream(CheckpointStateOutputStream delegate)
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic final org.apache.flink.util.ResourceGuard.Lease acquireLease()
throws IOException
ResourceGuard.Lease that prevents closing this
stream. To allow the system to close this stream, each of the acquired leases need to call
ResourceGuard.Lease.close(), on their acquired leases.IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.