Package org.eclipse.aether
Interface RepositorySystemSession.CloseableSession
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,RepositorySystemSession
- Enclosing interface:
- RepositorySystemSession
public static interface RepositorySystemSession.CloseableSession extends RepositorySystemSession, java.io.Closeable
Immutable session that is closeable, should be handled as a resource. These session instances can be created withRepositorySystemSession.SessionBuilder.- Since:
- 2.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.aether.RepositorySystemSession
RepositorySystemSession.CloseableSession, RepositorySystemSession.SessionBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the session.java.lang.StringsessionId()Returns the ID of this closeable session instance.-
Methods inherited from interface org.eclipse.aether.RepositorySystemSession
addOnSessionEndedHandler, getArtifactDescriptorPolicy, getArtifactTypeRegistry, getArtifactUpdatePolicy, getAuthenticationSelector, getCache, getChecksumPolicy, getConfigProperties, getData, getDependencyCollectionChecker, getDependencyGraphTransformer, getDependencyManager, getDependencySelector, getDependencyTraverser, getLocalRepository, getLocalRepositoryManager, getMetadataUpdatePolicy, getMirrorSelector, getProxySelector, getRepositoryListener, getResolutionErrorPolicy, getScopeManager, getSystemDependencyScope, getSystemProperties, getTransferListener, getUpdatePolicy, getUserProperties, getVersionFilter, getWorkspaceReader, isIgnoreArtifactDescriptorRepositories, isOffline
-
-
-
-
Method Detail
-
sessionId
java.lang.String sessionId()
Returns the ID of this closeable session instance. Each closeable session has different ID, unique within repository system they were created with.- Returns:
- The session ID that is never
null.
-
close
void close()
Closes the session. The session should be closed by its creator. A closed session should not be used anymore. This method may be invoked multiple times, but close will act only once (first time).- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-