Package org.eclipse.jgit.storage.dht.spi

Examples of org.eclipse.jgit.storage.dht.spi.WriteBuffer


  public ChunkTable chunk() {
    return chunk;
  }

  public WriteBuffer newWriteBuffer() {
    return new WriteBuffer() {
      public void flush() throws DhtException {
        // Do nothing.
      }

      public void abort() throws DhtException {
View Full Code Here


   * @param db
   * @param dbWriteBuffer
   * @throws DhtException
   */
  void safePut(Database db, WriteBuffer dbWriteBuffer) throws DhtException {
    WriteBuffer chunkBuf = db.newWriteBuffer();

    db.repository().put(repo, getChunkInfo(), chunkBuf);
    chunkBuf.flush();

    db.chunk().put(builder, chunkBuf);
    chunkBuf.flush();

    linkObjects(db, dbWriteBuffer);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.storage.dht.spi.WriteBuffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.