All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gridkit.jvmtool.heapdump.io.PagePool Maven / Gradle / Ivy

There is a newer version: 0.16
Show newest version
package org.gridkit.jvmtool.heapdump.io;

import java.nio.ByteBuffer;

public interface PagePool {

    public int getPageSize();
    
    public boolean hasFreePages();
    
    public ByteBuffer accurePage() throws NoMorePagesException;
    
    public void releasePage(ByteBuffer buffer);
    
    public static class NoMorePagesException extends RuntimeException {

        private static final long serialVersionUID = 20160903L;

        public NoMorePagesException() {
            super();
        }

        public NoMorePagesException(String message, Throwable cause) {
            super(message, cause);
        }

        public NoMorePagesException(String message) {
            super(message);
        }

        public NoMorePagesException(Throwable cause) {
            super(cause);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy