Verified Owner
Top Description Constructors Methods
org.jabref.logic.git

public final Class GitSsh

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
org.eclipse.jgit.transport.SshSessionFactory, org.eclipse.jgit.transport.sshd.SshdSessionFactory, org.jspecify.annotations.NullMarked

Lifecycle of jgit's shared SSH backend. The connector side is installed lazily from GitHandler (see SshAgentConnectorFactory); this closes the session-factory side at a controlled point.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
shutdown()

Closes jgit's shared sshd session factory so mina-sshd's asynchronous channel group is torn down while the JVM is still running.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GitSshback to summary
private GitSsh()

Method Detail

shutdownback to summary
public static void shutdown()

Closes jgit's shared sshd session factory so mina-sshd's asynchronous channel group is torn down while the JVM is still running. Left to JVM shutdown instead, a Windows IOCP socket read can complete after the group's executor is already gone and fail on a background thread with IllegalStateException: Executor has been shut down. Call once, during application shutdown.