org.codehaus.wadi.impl
Class HashingCollapser

java.lang.Object
  extended byorg.codehaus.wadi.impl.HashingCollapser
All Implemented Interfaces:
Collapser

public class HashingCollapser
extends Object
implements Collapser

A lock Collapser that collapses according to hash code

Version:
$Revision: 1139 $
Author:
Jules Gosnell

Field Summary
protected  Log _log
           
protected  int _numSyncs
           
protected  Sync[] _syncs
           
protected  long _timeout
           
 
Constructor Summary
HashingCollapser(int numSyncs, long timeout)
           
 
Method Summary
 Sync getLock(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

protected final Log _log

_numSyncs

protected final int _numSyncs

_syncs

protected final Sync[] _syncs

_timeout

protected final long _timeout
Constructor Detail

HashingCollapser

public HashingCollapser(int numSyncs,
                        long timeout)
Method Detail

getLock

public Sync getLock(String id)
Specified by:
getLock in interface Collapser


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.