Class ReadableChannelSwitchableBase<A, X extends ReadableChannel<A>>
java.lang.Object
org.aksw.commons.util.closeable.AutoCloseableWrapperBase<X>
org.aksw.commons.io.shared.ChannelDecoratorBase<X>
org.aksw.commons.io.input.ReadableChannelDecoratorBase<A,X>
org.aksw.commons.io.input.ReadableChannelLocking<A,X>
org.aksw.commons.io.input.ReadableChannelSwitchableBase<A,X>
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, HasArrayOps<A>, ReadableChannel<A>, ReadableSource<A>
- Direct Known Subclasses:
ReadableChannelSwitchable, SeekableReadableChannelSwitchable
public class ReadableChannelSwitchableBase<A, X extends ReadableChannel<A>>
extends ReadableChannelLocking<A,X>
-
Field Summary
Fields inherited from class ReadableChannelLocking
rwlFields inherited from class AutoCloseableWrapperBase
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDecoratee(Supplier<X> decoratee) Acquires the write lock and sets the decorateevoidsetDecoratee(X decoratee) Only call while locked.Methods inherited from class ReadableChannelLocking
getReadWriteLock, readMethods inherited from class ReadableChannelDecoratorBase
getArrayOpsMethods inherited from class ChannelDecoratorBase
close, isOpenMethods inherited from class AutoCloseableWrapperBase
closeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReadableSource
readRaw
-
Constructor Details
-
ReadableChannelSwitchableBase
-
-
Method Details
-
setDecoratee
-
setDecoratee
Only call while locked. Take care to properly close the prior delegate! -
getDelegate
- Overrides:
getDelegatein classAutoCloseableWrapperBase<X extends ReadableChannel<A>>
-