Class ConcurrentFileEndpoint

java.lang.Object
org.aksw.jena_sparql_api.io.endpoint.ConcurrentFileEndpoint
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, WritableByteChannel

public class ConcurrentFileEndpoint extends Object implements WritableByteChannel
Class for allowing an arbitrary number of concurrent reads to a file while it is being written to. Readers reaching the end of their respective channel will block and wait for more data as long as the write channel remains open. An endpoint combines sink and source capabilities. The ConcurrentFileEndpoint is a WritableByteChannel that supports creating new InputStreams over the data. At present, these InputStreams are not seekable.
Author:
raven