// Path: src/main/java/com/ystruct.middleware/stormmq/store/MapedFile.java
// public static void clean(final ByteBuffer buffer) {
//     if (buffer == null || !buffer.isDirect() || buffer.capacity() == 0)
//         return;
//     invoke(invoke(viewed(buffer), "cleaner"), "clean");
// 
// }


import java.nio.ByteBuffer;
import static store.MapedFile.clean;
package DirectByteBuffer;



/**
 * Created by yang on 16-11-27.
 */
public class directBytebuffer {
    public static void sleep(long i){
        try {
            Thread.sleep(i);
        }catch (Exception e){

        }
    }
    public static void main(String[] args) throws Exception{
        ByteBuffer buffer = ByteBuffer.allocateDirect(1024*1024*500);
        System.out.println("start");
        sleep(10000);
// Path: src/main/java/com/ystruct.middleware/stormmq/store/MapedFile.java
// public static void clean(final ByteBuffer buffer) {
//     if (buffer == null || !buffer.isDirect() || buffer.capacity() == 0)
//         return;
//     invoke(invoke(viewed(buffer), "cleaner"), "clean");
// 
// }


// Path: src/main/test/DirectByteBuffer/directBytebuffer.java
import java.nio.ByteBuffer;
import static store.MapedFile.clean;

package DirectByteBuffer;



/**
 * Created by yang on 16-11-27.
 */
public class directBytebuffer {
    public static void sleep(long i){
        try {
            Thread.sleep(i);
        }catch (Exception e){

        }
    }
    public static void main(String[] args) throws Exception{
        ByteBuffer buffer = ByteBuffer.allocateDirect(1024*1024*500);
        System.out.println("start");
        sleep(10000);
        clean(buffer);