public PortableFactory createFactory() {
ConstructorFunction<Integer, Portable>[] constructors = new ConstructorFunction[TXN_MM_REMOVEALL + 1];
constructors[CLEAR] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new ClearRequest();
}
};
constructors[CONTAINS_ENTRY] = new ConstructorFunction<Integer, Portable>() {
public Portable createNew(Integer arg) {
return new ContainsEntryRequest();