@ThreadSafe public class PageBuffer extends Object
| Constructor and Description |
|---|
PageBuffer(int maxBufferedPages) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<?> |
add(Page page)
Adds a page to the buffer.
|
boolean |
isFull() |
Page |
poll()
Return a page from the buffer, or null if none exists
|
public boolean isFull()
public com.google.common.util.concurrent.ListenableFuture<?> add(Page page)
public Page poll()
Copyright © 2012–2019. All rights reserved.