Class NamedLockFactoryAdapter
- java.lang.Object
-
- org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapter
-
public final class NamedLockFactoryAdapter extends java.lang.Object
Adapter to adaptNamedLockFactoryandNamedLocktoSyncContext.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_RETRYThe amount of retries on time-out.static java.lang.StringCONFIG_PROP_RETRY_WAITThe amount of milliseconds to wait between retries on time-out.static java.lang.StringCONFIG_PROP_TIMEDeprecated.static java.lang.StringCONFIG_PROP_TIME_UNITDeprecated.static java.lang.StringCONFIG_PROPS_PREFIXstatic intDEFAULT_RETRYstatic longDEFAULT_RETRY_WAITstatic longDEFAULT_TIMEDeprecated.static java.lang.StringDEFAULT_TIME_UNITDeprecated.
-
Constructor Summary
Constructors Constructor Description NamedLockFactoryAdapter(NameMapper nameMapper, org.eclipse.aether.named.NamedLockFactory namedLockFactory, long lockWait, java.util.concurrent.TimeUnit lockWaitUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.aether.named.NamedLockFactorygetNamedLockFactory()NameMappergetNameMapper()org.eclipse.aether.SyncContextnewInstance(org.eclipse.aether.RepositorySystemSession session, boolean shared)java.lang.StringtoString()
-
-
-
Field Detail
-
CONFIG_PROPS_PREFIX
public static final java.lang.String CONFIG_PROPS_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_PROP_TIME
@Deprecated public static final java.lang.String CONFIG_PROP_TIME
Deprecated.The maximum of time amount to be blocked to obtain lock. Deprecated: useaether.system.named...configuration instead.- Since:
- 1.7.0
- See Also:
- Constant Field Values
-
DEFAULT_TIME
@Deprecated public static final long DEFAULT_TIME
Deprecated.- See Also:
- Constant Field Values
-
CONFIG_PROP_TIME_UNIT
@Deprecated public static final java.lang.String CONFIG_PROP_TIME_UNIT
Deprecated.The unit of maximum time amount to be blocked to obtain lock. Use TimeUnit enum names. Deprecated: useaether.system.named...configuration instead.- Since:
- 1.7.0
- See Also:
- Constant Field Values
-
DEFAULT_TIME_UNIT
@Deprecated public static final java.lang.String DEFAULT_TIME_UNIT
Deprecated.- See Also:
- Constant Field Values
-
CONFIG_PROP_RETRY
public static final java.lang.String CONFIG_PROP_RETRY
The amount of retries on time-out.- Since:
- 1.7.0
- See Also:
- Constant Field Values
-
DEFAULT_RETRY
public static final int DEFAULT_RETRY
- See Also:
- Constant Field Values
-
CONFIG_PROP_RETRY_WAIT
public static final java.lang.String CONFIG_PROP_RETRY_WAIT
The amount of milliseconds to wait between retries on time-out.- Since:
- 1.7.0
- See Also:
- Constant Field Values
-
DEFAULT_RETRY_WAIT
public static final long DEFAULT_RETRY_WAIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NamedLockFactoryAdapter
public NamedLockFactoryAdapter(NameMapper nameMapper, org.eclipse.aether.named.NamedLockFactory namedLockFactory, long lockWait, java.util.concurrent.TimeUnit lockWaitUnit)
-
-
Method Detail
-
newInstance
public org.eclipse.aether.SyncContext newInstance(org.eclipse.aether.RepositorySystemSession session, boolean shared)
-
getNameMapper
public NameMapper getNameMapper()
- Since:
- 1.9.1
-
getNamedLockFactory
public org.eclipse.aether.named.NamedLockFactory getNamedLockFactory()
- Since:
- 1.9.1
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-