public class SharedObjectFactory extends Object
| Constructor and Description |
|---|
SharedObjectFactory()
Default constructor.
|
SharedObjectFactory(int initialLogSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SharedObject |
build(SharedObject prototype)
Finds or creates the unique version of the given shared object prototype.
|
void |
cleanup()
Removes stale entries from the set.
|
boolean |
contains(SharedObject object)
Checks if the given shared object is present in this factory.
|
String |
toString()
Returns statistics.
|
public SharedObjectFactory()
public SharedObjectFactory(int initialLogSize)
initialLogSize - This is the argument that will be ignored.public void cleanup()
public String toString()
toString in class ObjectObject.toString()public SharedObject build(SharedObject prototype)
prototype - The prototype of the shared object we want the unique reference too.public boolean contains(SharedObject object)
prototype - The shared object.Copyright © 2012 CWI. All Rights Reserved.