/** * Issues a asynchronous write request to the writer. * * @param segment The segment to be written. * @throws IOException Thrown, when the writer encounters an I/O error. Due to the asynchronous nature of the * writer, the exception thrown here may have been caused by an earlier write request. */ @Override public void writeBlock(MemorySegment segment) throws IOException { addRequest(new SegmentWriteRequest(this, segment)); } }
@Override public BlockChannelWriterWithCallback<MemorySegment> createBlockChannelWriter(FileIOChannel.ID channelID, RequestDoneCallback<MemorySegment> callback) throws IOException { checkState(!isShutdown.get(), "I/O-Manger is shut down."); return new AsynchronousBlockWriterWithCallback(channelID, this.writers[channelID.getThreadNum()].requestQueue, callback, bufferedWriteSize); }
@Override public BlockChannelWriterWithCallback<MemorySegment> createBlockChannelWriter(FileIOChannel.ID channelID, RequestDoneCallback<MemorySegment> callback) throws IOException { checkState(!isShutdown.get(), "I/O-Manger is shut down."); return new AsynchronousBlockWriterWithCallback(channelID, this.writers[channelID.getThreadNum()].requestQueue, callback); }
@Override public BlockChannelWriterWithCallback<MemorySegment> createBlockChannelWriter(FileIOChannel.ID channelID, RequestDoneCallback<MemorySegment> callback) throws IOException { checkState(!isShutdown.get(), "I/O-Manger is shut down."); return new AsynchronousBlockWriterWithCallback(channelID, this.writers[channelID.getThreadNum()].requestQueue, callback); }
/** * Issues a asynchronous write request to the writer. * * @param segment The segment to be written. * @throws IOException Thrown, when the writer encounters an I/O error. Due to the asynchronous nature of the * writer, the exception thrown here may have been caused by an earlier write request. */ @Override public void writeBlock(MemorySegment segment) throws IOException { addRequest(new SegmentWriteRequest(this, segment)); } }
@Override public BlockChannelWriterWithCallback<MemorySegment> createBlockChannelWriter(FileIOChannel.ID channelID, RequestDoneCallback<MemorySegment> callback) throws IOException { checkState(!isShutdown.get(), "I/O-Manger is shut down."); return new AsynchronousBlockWriterWithCallback(channelID, this.writers[channelID.getThreadNum()].requestQueue, callback); }
/** * Issues a asynchronous write request to the writer. * * @param segment The segment to be written. * @throws IOException Thrown, when the writer encounters an I/O error. Due to the asynchronous nature of the * writer, the exception thrown here may have been caused by an earlier write request. */ @Override public void writeBlock(MemorySegment segment) throws IOException { addRequest(new SegmentWriteRequest(this, segment)); } }
/** * Issues a asynchronous write request to the writer. * * @param segment The segment to be written. * @throws IOException Thrown, when the writer encounters an I/O error. Due to the asynchronous nature of the * writer, the exception thrown here may have been caused by an earlier write request. */ @Override public void writeBlock(MemorySegment segment) throws IOException { addRequest(new SegmentWriteRequest(this, segment, bufferSize)); } }