Skip to content

Commit

Permalink
dummy implementation of new NRD operations
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Feb 3, 2014
1 parent f501692 commit 249f6cc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,4 +372,10 @@ public boolean existAny (Object[] keys) {
public boolean existAny (Object[] keys, long timeout) {
throw new SpaceError ("Unsupported operation");
}
public void nrd(Object key) {
throw new SpaceError("Not implemented");
}
public Object nrd(Object key, long timeout) {
throw new SpaceError("Not implemented");
}
}
6 changes: 6 additions & 0 deletions compat_1_5_2/src/main/java/org/jpos/space/TinySpace.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ else if (obj instanceof LeasedReference) {
}
return obj;
}
public void nrd(Object key) {
throw new SpaceError("Not implemented");
}
public Object nrd(Object key, long timeout) {
throw new SpaceError("Not implemented");
}
public synchronized Object inp (Object key) {
Object obj = map.get (key);
if (obj instanceof Data) {
Expand Down
6 changes: 6 additions & 0 deletions compat_1_5_2/src/main/java/org/jpos/space/TransientSpace.java
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,11 @@ public boolean existAny (Object[] keys) {
public boolean existAny (Object[] keys, long timeout) {
throw new SpaceError ("Unsupported operation");
}
public void nrd(Object key) {
throw new SpaceError("Not implemented");
}
public Object nrd(Object key, long timeout) {
throw new SpaceError("Not implemented");
}
}

0 comments on commit 249f6cc

Please sign in to comment.