Author: simonetripodi
Date: Sun Feb 26 17:27:13 2012
New Revision: 1293884
URL: http://svn.apache.org/viewvc?rev=1293884&view=rev
Log:
no tabs
Modified:
incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerService.java
Modified:
incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerService.java
URL:
http://svn.apache.org/viewvc/incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerService.java?rev=1293884&r1=1293883&r2=1293884&view=diff
==============================================================================
---
incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerService.java
(original)
+++
incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerService.java
Sun Feb 26 17:27:13 2012
@@ -25,53 +25,53 @@ import java.util.List;
public interface MemoryManagerService<V>
{
- /**
- * Initialize the internal structure. Need to be called before the
service
- * can be used.
- *
- * @param numberOfBuffers
- * : number of internal bucket
- * @param size
- * : size in B of internal buckets
- */
+ /**
+ * Initialize the internal structure. Need to be called before the service
+ * can be used.
+ *
+ * @param numberOfBuffers
+ * : number of internal bucket
+ * @param size
+ * : size in B of internal buckets
+ */
void init( int numberOfBuffers, int size );
- /**
- * Store function family. Store the given payload at a certain offset
in a MemoryBuffer, returning the pointer to the value.
- *
- * @param payload : the data to store
- * @return the pointer to the value, or null if not enough space has
been found.
- */
+ /**
+ * Store function family. Store the given payload at a certain offset in a
MemoryBuffer, returning the pointer to the value.
+ *
+ * @param payload : the data to store
+ * @return the pointer to the value, or null if not enough space has been
found.
+ */
Pointer<V> store( byte[] payload, int expiresIn );
- /**
- * Same function as {@link #store(byte[])}, but add an relative
expiration delta in milliseconds
- *
- * @param payload : the data to store
- * @param expiresIn : relative amount of milliseconds the data will
expire
- * @return the pointer to the value, or null if not enough space has
been found.
- */
+ /**
+ * Same function as {@link #store(byte[])}, but add an relative expiration
delta in milliseconds
+ *
+ * @param payload : the data to store
+ * @param expiresIn : relative amount of milliseconds the data will expire
+ * @return the pointer to the value, or null if not enough space has been
found.
+ */
Pointer<V> store( byte[] payload );
- /**
- * Same function as {@link #store(byte[])}, but add an absolute
expiration date
- * @param payload : the data to store
- * @param expires : the absolute date the data will expire
- * @return the pointer to the value, or null if not enough space has
been found.
- */
- //public Pointer store(byte[] payload, Date expires);
-
-
- /**
- *
- *
- * Update value of a {@link Pointer
- * @param pointer
- * @param payload
- * @return
- * @throw BufferOverflowException if the size of the payload id bigger
than the pointer capacity
- */
+ /**
+ * Same function as {@link #store(byte[])}, but add an absolute expiration
date
+ * @param payload : the data to store
+ * @param expires : the absolute date the data will expire
+ * @return the pointer to the value, or null if not enough space has been
found.
+ */
+ //public Pointer store(byte[] payload, Date expires);
+
+
+ /**
+ *
+ *
+ * Update value of a {@link Pointer
+ * @param pointer
+ * @param payload
+ * @return
+ * @throw BufferOverflowException if the size of the payload id bigger
than the pointer capacity
+ */
Pointer<V> update(Pointer<V> pointer, byte[] payload);
byte[] retrieve( Pointer<V> pointer );