Advertisement
tpeierls

AsyncTtlIMap.java

May 31st, 2011
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.33 KB | None | 0 0
  1. package com.hazelcast.util;
  2.  
  3. import com.hazelcast.core.IMap;
  4.  
  5. import java.util.concurrent.Future;
  6. import java.util.concurrent.TimeUnit;
  7.  
  8.  
  9. /**
  10.  * An extension of IMap to add putAsync with TTL.
  11.  */
  12. public interface AsyncTtlIMap<K, V> extends IMap<K, V> {
  13.  
  14.     Future<V> putAsync(K key, V value, long ttl, TimeUnit timeunit);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement