static class DefaultSyncContextFactory.DefaultSyncContext extends java.lang.Object implements SyncContext
| Constructor and Description |
|---|
DefaultSyncContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire(java.util.Collection<? extends Artifact> artifact,
java.util.Collection<? extends Metadata> metadata)
Acquires synchronized access to the specified artifacts and metadatas.
|
void |
close()
Releases all previously acquired artifacts/metadatas.
|
public void acquire(java.util.Collection<? extends Artifact> artifact, java.util.Collection<? extends Metadata> metadata)
SyncContextacquire in interface SyncContextartifact - The artifacts to acquire, may be null or empty if none.metadata - The metadatas to acquire, may be null or empty if none.public void close()
SyncContextclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface SyncContext