net.grinder.synchronisation
Class BarrierIdentityGenerator

java.lang.Object
  extended by net.grinder.synchronisation.BarrierIdentityGenerator
All Implemented Interfaces:
BarrierIdentity.Factory

public final class BarrierIdentityGenerator
extends Object
implements BarrierIdentity.Factory

Identity generator.

Author:
Philip Aston

Constructor Summary
BarrierIdentityGenerator(Serializable scope)
          Constructor.
 
Method Summary
 BarrierIdentity next()
          Create a new barrier identity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarrierIdentityGenerator

public BarrierIdentityGenerator(Serializable scope)
Constructor.

Parameters:
scope - The scope of the generated identities.
Method Detail

next

public BarrierIdentity next()
Create a new barrier identity.

Specified by:
next in interface BarrierIdentity.Factory
Returns:
The new barrier identity.


Copyright © 2000-2013. All Rights Reserved.