Package org.eclipse.aether
Interface RepositorySystemSession.CloseableSession
- All Superinterfaces:
- AutoCloseable,- Closeable,- RepositorySystemSession
- Enclosing interface:
- RepositorySystemSession
public static interface RepositorySystemSession.CloseableSession
extends RepositorySystemSession, Closeable
Immutable session that is closeable, should be handled as a resource. These session instances can be
 created with 
RepositorySystemSession.SessionBuilder.- Since:
- 2.0.0
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.aether.RepositorySystemSessionRepositorySystemSession.CloseableSession, RepositorySystemSession.SessionBuilder
- 
Method SummaryMethods inherited from interface org.eclipse.aether.RepositorySystemSessionaddOnSessionEndedHandler, getArtifactDescriptorPolicy, getArtifactTypeRegistry, getArtifactUpdatePolicy, getAuthenticationSelector, getCache, getChecksumPolicy, getConfigProperties, getData, getDependencyGraphTransformer, getDependencyManager, getDependencySelector, getDependencyTraverser, getLocalRepository, getLocalRepositoryManager, getMetadataUpdatePolicy, getMirrorSelector, getProxySelector, getRepositoryListener, getResolutionErrorPolicy, getScopeManager, getSystemDependencyScope, getSystemProperties, getTransferListener, getUpdatePolicy, getUserProperties, getVersionFilter, getWorkspaceReader, isIgnoreArtifactDescriptorRepositories, isOffline
- 
Method Details- 
sessionIdReturns 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.
 
- 
closevoid 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 interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
 
-