Top Fields Constructors Methods
io.undertow.util

public Class NewInstanceObjectPool<T>

extends Object
implements ObjectPool
Class Inheritance
All Implemented Interfaces
io.undertow.util.ObjectPool
Imports
java.util.function.Consumer, .Supplier, io.undertow.UndertowMessages

Authors
ckozak, Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final Consumer<T>
private final Supplier<T>

Constructor Summary

AccessConstructor and Description
public
NewInstanceObjectPool(Supplier<T> supplier, Consumer<T> consumer)

Method Summary

Modifier and TypeMethod and Description
public PooledObject<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

consumerback to summary
private final Consumer<T> consumer
supplierback to summary
private final Supplier<T> supplier

Constructor Detail

NewInstanceObjectPoolback to summary
public NewInstanceObjectPool(Supplier<T> supplier, Consumer<T> consumer)

Method Detail

allocateback to summary
public PooledObject<T> allocate()

Implements io.undertow.util.ObjectPool.allocate.

Annotations
@Override