Example usage for org.eclipse.jgit.transport WalkRemoteObjectDatabase close

List of usage examples for org.eclipse.jgit.transport WalkRemoteObjectDatabase close

Introduction

In this page you can find the example usage for org.eclipse.jgit.transport WalkRemoteObjectDatabase close.

Prototype

abstract void close();

Source Link

Document

Close any resources used by this connection.

Usage

From source file:it.com.atlassian.labs.speakeasy.util.jgit.WalkFetchConnection.java

License:Eclipse Distribution License

@Override
public void close() {
    inserter.release();/*w  w w  .  jav  a2s. c  o m*/
    reader.release();
    for (final RemotePack p : unfetchedPacks) {
        if (p.tmpIdx != null)
            p.tmpIdx.delete();
    }
    for (final WalkRemoteObjectDatabase r : remotes)
        r.close();
}