incubator-directmemory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1226011 - in /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory: cache/CacheService.java measures/MonitorService.java memory/MemoryManagerService.java serialization/Serializer.java
Date Sat, 31 Dec 2011 01:18:35 GMT
Author: mcucchiara
Date: Sat Dec 31 01:18:35 2011
New Revision: 1226011

URL: http://svn.apache.org/viewvc?rev=1226011&view=rev
Log:
DIRECTMEMORY-52 - Removed redundant 'public' modifier from interfaces

Modified:
    incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/cache/CacheService.java
    incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/measures/MonitorService.java
    incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerService.java
    incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/serialization/Serializer.java

Modified: incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/cache/CacheService.java
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/cache/CacheService.java?rev=1226011&r1=1226010&r2=1226011&view=diff
==============================================================================
--- incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/cache/CacheService.java
(original)
+++ incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/cache/CacheService.java
Sat Dec 31 01:18:35 2011
@@ -1,3 +1,5 @@
+package org.apache.directmemory.cache;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -17,7 +19,6 @@
  * under the License.
  */
 
-package org.apache.directmemory.cache;
 
 import org.apache.directmemory.memory.MemoryManagerService;
 import org.apache.directmemory.memory.OffHeapMemoryBuffer;
@@ -32,59 +33,59 @@ public interface CacheService
     public static int DEFAULT_CONCURRENCY_LEVEL = 4;
     public static int DEFAULT_INITIAL_CAPACITY = 100000;
 
-    public void init( int numberOfBuffers, int size, int initialCapacity, int concurrencyLevel
);
+    void init( int numberOfBuffers, int size, int initialCapacity, int concurrencyLevel );
 
-    public void init( int numberOfBuffers, int size );
+    void init( int numberOfBuffers, int size );
 
-    public void scheduleDisposalEvery( long l );
+    void scheduleDisposalEvery( long l );
 
-    public Pointer putByteArray( String key, byte[] payload, int expiresIn );
+    Pointer putByteArray( String key, byte[] payload, int expiresIn );
 
-    public Pointer putByteArray( String key, byte[] payload );
+    Pointer putByteArray( String key, byte[] payload );
 
-    public Pointer put( String key, Object object );
+    Pointer put( String key, Object object );
 
-    public Pointer put( String key, Object object, int expiresIn );
+    Pointer put( String key, Object object, int expiresIn );
 
-    public Pointer updateByteArray( String key, byte[] payload );
+    Pointer updateByteArray( String key, byte[] payload );
 
-    public Pointer update( String key, Object object );
+    Pointer update( String key, Object object );
 
-    public byte[] retrieveByteArray( String key );
+    byte[] retrieveByteArray( String key );
 
-    public Object retrieve( String key );
+    Object retrieve( String key );
 
-    public Pointer getPointer( String key );
+    Pointer getPointer( String key );
 
-    public void free( String key );
+    void free( String key );
 
-    public void free( Pointer pointer );
+    void free( Pointer pointer );
 
-    public void collectExpired();
+    void collectExpired();
 
-    public void collectLFU();
+    void collectLFU();
 
-    public void collectAll();
+    void collectAll();
 
 
-    public void clear();
+    void clear();
 
-    public long entries();
+    long entries();
 
-    public void dump( OffHeapMemoryBuffer mem );
+    void dump( OffHeapMemoryBuffer mem );
 
-    public void dump();
+    void dump();
 
-    public ConcurrentMap<String, Pointer> getMap();
+    ConcurrentMap<String, Pointer> getMap();
 
-    public void setMap( ConcurrentMap<String, Pointer> map );
+    void setMap( ConcurrentMap<String, Pointer> map );
 
-    public Serializer getSerializer();
+    Serializer getSerializer();
 
-    public MemoryManagerService getMemoryManager();
+    MemoryManagerService getMemoryManager();
 
-    public void setMemoryManager( MemoryManagerService memoryManager );
+    void setMemoryManager( MemoryManagerService memoryManager );
 
-    public Pointer allocate( String key, int size );
+    Pointer allocate( String key, int size );
 
 }

Modified: incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/measures/MonitorService.java
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/measures/MonitorService.java?rev=1226011&r1=1226010&r2=1226011&view=diff
==============================================================================
--- incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/measures/MonitorService.java
(original)
+++ incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/measures/MonitorService.java
Sat Dec 31 01:18:35 2011
@@ -24,34 +24,34 @@ import java.util.concurrent.atomic.Atomi
 public interface MonitorService
 {
 
-    public long start();
+    long start();
 
-    public long stop( long begunAt );
+    long stop( long begunAt );
 
-    public long hits();
+    long hits();
 
-    public long totalTime();
+    long totalTime();
 
-    public long average();
+    long average();
 
-    public void dump( String prefix );
+    void dump( String prefix );
 
-    public void dump();
+    void dump();
 
-    public AtomicLong getHits();
+    AtomicLong getHits();
 
-    public long getTotalTime();
+    long getTotalTime();
 
-    public void addToTotalTime( long time );
+    void addToTotalTime( long time );
 
-    public long getMin();
+    long getMin();
 
-    public void setMin( long min );
+    void setMin( long min );
 
-    public long getMax();
+    long getMax();
 
-    public void setMax( long max );
+    void setMax( long max );
 
 
-    public String getName();
+    String getName();
 }

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=1226011&r1=1226010&r2=1226011&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
Sat Dec 31 01:18:35 2011
@@ -25,30 +25,30 @@ import java.util.List;
 public interface MemoryManagerService
 {
 
-    public void init( int numberOfBuffers, int size );
+    void init( int numberOfBuffers, int size );
 
-    public Pointer store( byte[] payload, int expiresIn );
+    Pointer store( byte[] payload, int expiresIn );
 
-    public Pointer store( byte[] payload );
+    Pointer store( byte[] payload );
 
-    public Pointer update( Pointer pointer, byte[] payload );
+    Pointer update( Pointer pointer, byte[] payload );
 
-    public byte[] retrieve( Pointer pointer );
+    byte[] retrieve( Pointer pointer );
 
-    public void free( Pointer pointer );
+    void free( Pointer pointer );
 
-    public void clear();
+    void clear();
 
-    public long capacity();
+    long capacity();
 
-    public long collectExpired();
+    long collectExpired();
 
-    public void collectLFU();
+    void collectLFU();
 
-    public List<OffHeapMemoryBuffer> getBuffers();
+    List<OffHeapMemoryBuffer> getBuffers();
 
-    public OffHeapMemoryBuffer getActiveBuffer();
+    OffHeapMemoryBuffer getActiveBuffer();
 
-    public Pointer allocate( int size, int expiresIn, int expires );
+    Pointer allocate( int size, int expiresIn, int expires );
 
 }

Modified: incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/serialization/Serializer.java
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/serialization/Serializer.java?rev=1226011&r1=1226010&r2=1226011&view=diff
==============================================================================
--- incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/serialization/Serializer.java
(original)
+++ incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/serialization/Serializer.java
Sat Dec 31 01:18:35 2011
@@ -25,10 +25,10 @@ import java.io.IOException;
 public interface Serializer
 {
 
-    public abstract byte[] serialize( Object obj, @SuppressWarnings( { "rawtypes", "unchecked"
} ) Class clazz )
+    abstract byte[] serialize( Object obj, @SuppressWarnings( { "rawtypes", "unchecked" }
) Class clazz )
         throws IOException;
 
-    public abstract Object deserialize( byte[] source, @SuppressWarnings( { "rawtypes", "unchecked"
} ) Class clazz )
+    abstract Object deserialize( byte[] source, @SuppressWarnings( { "rawtypes", "unchecked"
} ) Class clazz )
         throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException,
EOFException;
 
 }
\ No newline at end of file



Mime
View raw message