com.google.appengine.api.files
Interface RecordWriteChannel
-
- All Superinterfaces:
- java.lang.AutoCloseable, java.nio.channels.Channel, java.io.Closeable, java.nio.channels.WritableByteChannel
Deprecated.
@Deprecated public interface RecordWriteChannel extends java.nio.channels.WritableByteChannelAWritableByteChannelfor writing records to aFileWriteChannel.The format of these records is defined by the leveldb log format: http://leveldb.googlecode.com/svn/trunk/doc/log_format.txt
An instance of
Just likeRecordWriteChannelmay be obtained from the method:FileService.openRecordWriteChannel(AppEngineFile, boolean).WritableByteChannelIf one thread initiates a write operation upon a channel then any other thread that attempts to initiate another write operation will block until the first operation is complete.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method and Description voidcloseFinally()Deprecated.Closes the file.intwrite(java.nio.ByteBuffer src, java.lang.String sequenceKey)Deprecated.Writes the data out to FileWriteChannel.
-
-
-
Method Detail
-
write
int write(java.nio.ByteBuffer src, java.lang.String sequenceKey) throws java.io.IOExceptionDeprecated.Writes the data out to FileWriteChannel.- Throws:
java.io.IOException- See Also:
FileWriteChannel.write(ByteBuffer, String)
-
closeFinally
void closeFinally() throws java.lang.IllegalStateException, java.io.IOExceptionDeprecated.Closes the file.- Throws:
java.lang.IllegalStateExceptionjava.io.IOException- See Also:
FileWriteChannel.closeFinally()
-
-