类的使用
org.redkale.util.ObjectPool
-
使用ObjectPool的程序包 程序包 说明 org.redkale.net 网络TCP/UDP基础服务包org.redkale.net.http HTTP协议包,提供HTTP协议服务器org.redkale.net.sncp SNCP协议包,提供SNCP协议服务器org.redkale.util Redkale工具包 -
-
org.redkale.net中ObjectPool的使用
返回ObjectPool的org.redkale.net中的方法 修饰符和类型 方法 说明 protected abstract ObjectPool<P>
Server. createSafeResponsePool(LongAdder createCounter, LongAdder cycleCounter, int responsePoolSize)
-
org.redkale.net.http中ObjectPool的使用
声明为ObjectPool的org.redkale.net.http中的字段 修饰符和类型 字段 说明 protected ObjectPool<ByteArray>
WebSocketReadHandler. byteArrayPool
protected ObjectPool<ByteArray>
WebSocketWriteHandler. byteArrayPool
返回ObjectPool的org.redkale.net.http中的方法 修饰符和类型 方法 说明 protected ObjectPool<HttpResponse>
HttpServer. createSafeResponsePool(LongAdder createCounter, LongAdder cycleCounter, int responsePoolSize)
参数类型为ObjectPool的org.redkale.net.http中的构造器 构造器 说明 WebSocketReadHandler(HttpContext context, WebSocket webSocket, ObjectPool<ByteArray> byteArrayPool, BiConsumer<WebSocket,Object> messageConsumer)
WebSocketWriteHandler(HttpContext context, WebSocket webSocket, ObjectPool<ByteArray> byteArrayPool)
-
org.redkale.net.sncp中ObjectPool的使用
返回ObjectPool的org.redkale.net.sncp中的方法 修饰符和类型 方法 说明 protected ObjectPool<SncpResponse>
SncpServer. createSafeResponsePool(LongAdder createCounter, LongAdder cycleCounter, int responsePoolSize)
-
org.redkale.util中ObjectPool的使用
org.redkale.util中ObjectPool的子类 修饰符和类型 类 说明 class
ByteBufferPool
ByteBuffer的对象池声明为ObjectPool的org.redkale.util中的字段 修饰符和类型 字段 说明 protected ObjectPool<T>
ObjectPool. parent
返回ObjectPool的org.redkale.util中的方法 修饰符和类型 方法 说明 static <T> ObjectPool<T>
ObjectPool. createSafePool(int max, Class<T> clazz, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createSafePool(int max, Supplier<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createSafePool(int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createSafePool(Class<T> clazz, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createSafePool(LongAdder creatCounter, LongAdder cycleCounter, int max, Supplier<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createSafePool(LongAdder creatCounter, LongAdder cycleCounter, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createSafePool(Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(int max, Class<T> clazz, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(int max, Supplier<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(Class<T> clazz, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(Thread unsafeThread, int max, ObjectPool<T> safePool)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(LongAdder creatCounter, LongAdder cycleCounter, int max, Supplier<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(LongAdder creatCounter, LongAdder cycleCounter, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, int max, Class<T> clazz, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, int max, Supplier<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, Class<T> clazz, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, int max, Supplier<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, Thread unsafeThread, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
参数类型为ObjectPool的org.redkale.util中的方法 修饰符和类型 方法 说明 static <T> ObjectPool<T>
ObjectPool. createUnsafePool(Thread unsafeThread, int max, ObjectPool<T> safePool)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, int max, Class<T> clazz, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, int max, Supplier<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, Class<T> clazz, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, int max, Supplier<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, Thread unsafeThread, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
参数类型为ObjectPool的org.redkale.util中的构造器 构造器 说明 ByteBufferPool(ObjectPool<ByteBuffer> parent, LongAdder creatCounter, LongAdder cycleCounter, Thread unsafeThread, int max, int bufferCapacity, Queue<ByteBuffer> queue)
ObjectPool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, Thread unsafeThread, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler, Queue<T> queue)
-