User: fleury
Date: 00/08/17 10:43:27
Modified: src/main/org/jboss/util FastKey.java
Log:
Man yesterday was not my day at all...
I think this is complete now :(
Revision Changes Path
1.5 +18 -1 jboss/src/main/org/jboss/util/FastKey.java
Index: FastKey.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/util/FastKey.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- FastKey.java 2000/08/16 22:08:55 1.4
+++ FastKey.java 2000/08/17 17:43:27 1.5
@@ -16,9 +16,10 @@
*
* @see org.jboss.ejb.plugins.NoPassivationInstanceCache.java
* @author <a href="[EMAIL PROTECTED]">Marc Fleury</a>
-* @version $Revision: 1.4 $
+* @version $Revision: 1.5 $
*/
public class FastKey
+ implements java.io.Externalizable
{
// Constants -----------------------------------------------------
@@ -62,6 +63,22 @@
//increment the timeStamp
return new Long(seedKey++);
}
+
+
+ public void writeExternal(java.io.ObjectOutput out)
+ throws java.io.IOException
+ {
+ out.writeObject(id);
+ out.writeObject(fastKey);
+ }
+
+ public void readExternal(java.io.ObjectInput in)
+ throws java.io.IOException, ClassNotFoundException
+ {
+ id = in.readObject();
+ fastKey = (Long) in.readObject();
+ }
+
// Private -------------------------------------------------------