comparison src/org/dancres/blitz/remote/txn/TxnDetails.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.txn;
2
3 /**
4 */
5 public class TxnDetails {
6 private long theExpiry;
7
8 TxnDetails(long anExpiry) {
9 theExpiry = anExpiry;
10 }
11
12 boolean hasExpired(long aTime) {
13 return (theExpiry < aTime);
14 }
15
16 boolean testAndSetExpiry(long aTime, long anExpiry) {
17 if (theExpiry < aTime)
18 return false;
19
20 theExpiry = anExpiry;
21
22 return true;
23 }
24 }