net.sf.sasl.aop.distributed.lock.annotation.mutex
Class AnnotationLockConstants

java.lang.Object
  extended by net.sf.sasl.aop.distributed.lock.annotation.mutex.AnnotationLockConstants

public final class AnnotationLockConstants
extends Object

Class defines some shared constants between different distributed lock annotations.

Since:
0.0.1 (sasl-aop-distributed-library)
Author:
Philipp Förmer

Field Summary
static String DEFAULT_LOCK_KEY_POSTFIX
          A postfix string that should get appended after a lock key, for example "-lock".
static String DEFAULT_LOCK_KEY_PREFIX
          A prefix string that should get pushed before a lock key, for example "customer-id-".
static int DEFAULT_LOCK_ORDER_NUMBER
          The priority value defines an order number, if multiple locks should get acquired and locked at the same point of time.
static long DEFAULT_MAX_LOCK_WAITTIME
          The maximum wait time before a lock is acquired and locked.
 
Constructor Summary
AnnotationLockConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_LOCK_WAITTIME

public static final long DEFAULT_MAX_LOCK_WAITTIME
The maximum wait time before a lock is acquired and locked. The default value is wait for eternal time.

Since:
0.0.1 (sasl-aop-distributed-library)
See Also:
Constant Field Values

DEFAULT_LOCK_ORDER_NUMBER

public static final int DEFAULT_LOCK_ORDER_NUMBER
The priority value defines an order number, if multiple locks should get acquired and locked at the same point of time. The default value is smallest priority.

Since:
0.0.1 (sasl-aop-distributed-library)
See Also:
Constant Field Values

DEFAULT_LOCK_KEY_PREFIX

public static final String DEFAULT_LOCK_KEY_PREFIX
A prefix string that should get pushed before a lock key, for example "customer-id-". The default prefix is empty.

Since:
0.0.1 (sasl-aop-distributed-library)
See Also:
Constant Field Values

DEFAULT_LOCK_KEY_POSTFIX

public static final String DEFAULT_LOCK_KEY_POSTFIX
A postfix string that should get appended after a lock key, for example "-lock". The default postfix is empty.

Since:
0.0.1 (sasl-aop-distributed-library)
See Also:
Constant Field Values
Constructor Detail

AnnotationLockConstants

public AnnotationLockConstants()


Copyright © 2010. All Rights Reserved.