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)
SyncContext
acquire
in interface SyncContext
artifact
- 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()
SyncContext
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface SyncContext