Package io.undertow.util
Class ImmediatePooled<T>
- java.lang.Object
-
- io.undertow.util.ImmediatePooled<T>
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.xnio.Pooled<T>
public class ImmediatePooled<T> extends java.lang.Object implements org.xnio.Pooled<T>
Wrapper that allows you to use a non-pooed item as a pooled value- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ImmediatePooled(T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
discard()
void
free()
T
getResource()
-
-
-
Constructor Detail
-
ImmediatePooled
public ImmediatePooled(T value)
-
-
Method Detail
-
discard
public void discard()
- Specified by:
discard
in interfaceorg.xnio.Pooled<T>
-
free
public void free()
- Specified by:
free
in interfaceorg.xnio.Pooled<T>
-
getResource
public T getResource() throws java.lang.IllegalStateException
- Specified by:
getResource
in interfaceorg.xnio.Pooled<T>
- Throws:
java.lang.IllegalStateException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceorg.xnio.Pooled<T>
-
-