com.hs.mail.util
Class ObjectLocker

java.lang.Object
  extended by com.hs.mail.util.ObjectLocker

public class ObjectLocker
extends Object

Since:
Dec 12, 2005
Author:
Won Chul Doh

Field Summary
protected  long _maxWait
           
protected  long _minEvictableTimeMillis
           
protected  int _queueSize
           
static long DEFAULT_MAX_WAIT
           
static long DEFAULT_MIN_EVICTABLE_TIME_MILLIS
           
static int DEFAULT_QUEUE_SIZE
           
 
Constructor Summary
ObjectLocker()
           
 
Method Summary
 void lock(Object o)
           
 void unlock(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_WAIT

public static final long DEFAULT_MAX_WAIT
See Also:
Constant Field Values

DEFAULT_MIN_EVICTABLE_TIME_MILLIS

public static final long DEFAULT_MIN_EVICTABLE_TIME_MILLIS
See Also:
Constant Field Values

DEFAULT_QUEUE_SIZE

public static final int DEFAULT_QUEUE_SIZE
See Also:
Constant Field Values

_maxWait

protected long _maxWait

_minEvictableTimeMillis

protected long _minEvictableTimeMillis

_queueSize

protected int _queueSize
Constructor Detail

ObjectLocker

public ObjectLocker()
Method Detail

lock

public void lock(Object o)
          throws Exception
Throws:
Exception

unlock

public void unlock(Object o)


Copyright © 2011. All Rights Reserved.