public class GryoPool extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GryoPool.Type |
Constructor and Description |
---|
GryoPool(int poolSize) |
GryoPool(int poolSize,
GryoPool.Type type) |
Modifier and Type | Method and Description |
---|---|
<A> A |
doWithReader(Function<GryoReader,A> readerFunction) |
void |
doWithWriter(Consumer<GryoWriter> writerFunction) |
void |
offerReader(GryoReader gryoReader) |
void |
offerWriter(GryoWriter gryoWriter) |
GryoReader |
takeReader() |
GryoWriter |
takeWriter() |
public GryoPool(int poolSize)
public GryoPool(int poolSize, GryoPool.Type type)
public GryoReader takeReader()
public GryoWriter takeWriter()
public void offerReader(GryoReader gryoReader)
public void offerWriter(GryoWriter gryoWriter)
public <A> A doWithReader(Function<GryoReader,A> readerFunction)
public void doWithWriter(Consumer<GryoWriter> writerFunction)
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.