Package org.apache.flink.runtime.state
Class NonClosingCheckpointOutputStream<T extends StreamStateHandle>
java.lang.Object
java.io.OutputStream
org.apache.flink.runtime.state.NonClosingCheckpointOutputStream<T>
- Type Parameters:
T- type of the returned state handle.
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
KeyedStateCheckpointOutputStream,OperatorStateCheckpointOutputStream
public abstract class NonClosingCheckpointOutputStream<T extends StreamStateHandle>
extends OutputStream
Abstract class to implement custom checkpoint output streams which should not be closable for
user code.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
delegate
-
-
Constructor Details
-
NonClosingCheckpointOutputStream
-
-
Method Details
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
acquireLease
Returns aResourceGuard.Leasethat prevents closing this stream. To allow the system to close this stream, each of the acquired leases need to callResourceGuard.Lease.close(), on their acquired leases.- Throws:
IOException
-