comparison src/org/dancres/blitz/remote/nio/GenericSpaceOp.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz.remote.nio;
2
3 import org.dancres.blitz.mangler.MangledEntry;
4 import net.jini.core.transaction.Transaction;
5
6 /**
7 */
8 public class GenericSpaceOp implements Operation {
9 static final int WRITE = 1;
10 static final int READ = 2;
11 static final int TAKE = 3;
12 static final int TAKE_EXISTS = 4;
13 static final int READ_EXISTS = 5;
14
15 private int _operation;
16 private MangledEntry _entry;
17 private Transaction _txn;
18 private long _lease;
19
20 public GenericSpaceOp(int anOp, MangledEntry anEntry,
21 Transaction aTxn, long aLease) {
22 _operation = anOp;
23 _entry = anEntry;
24 _txn = aTxn;
25 _lease = aLease;
26 }
27
28 int getOperation() {
29 return _operation;
30 }
31
32 MangledEntry getEntry() {
33 return _entry;
34 }
35
36 Transaction getTxn() {
37 return _txn;
38 }
39
40 long getLease() {
41 return _lease;
42 }
43 }