Skip to content

Commit

Permalink
Enable serialization TSpace with timeout values
Browse files Browse the repository at this point in the history
  • Loading branch information
demsey committed Mar 6, 2016
1 parent 0751888 commit e0612ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jpos/src/main/java/org/jpos/space/TSpace.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.jpos.space;
import org.jpos.util.Loggeable;
import java.io.PrintStream;
import java.io.Serializable;
import java.util.*;
import java.util.concurrent.TimeUnit;

Expand Down Expand Up @@ -447,7 +448,11 @@ private void unregisterExpirable(Object k) {
for (Set<K> s : expirables)
s.remove(k);
}
static class Expirable implements Comparable {

static class Expirable implements Comparable, Serializable {

static final long serialVersionUID = 0xA7F22BF5;

Object value;
long expires;

Expand Down

0 comments on commit e0612ab

Please sign in to comment.