public class SocketAllocator extends java.lang.Object implements stormpot.Allocator<SocketPoolable>
| Constructor and Description |
|---|
SocketAllocator(java.net.InetSocketAddress server,
int socketTimeoutMillis,
java.nio.charset.Charset charset,
FlushStrategy flushStrategy) |
| Modifier and Type | Method and Description |
|---|---|
SocketPoolable |
allocate(stormpot.Slot slot) |
void |
deallocate(SocketPoolable poolable) |
public SocketAllocator(@Nonnull
java.net.InetSocketAddress server,
int socketTimeoutMillis,
@Nonnull
java.nio.charset.Charset charset,
@Nonnull
FlushStrategy flushStrategy)
public SocketPoolable allocate(stormpot.Slot slot) throws java.lang.Exception
allocate in interface stormpot.Allocator<SocketPoolable>java.lang.Exceptionpublic void deallocate(SocketPoolable poolable) throws java.lang.Exception
deallocate in interface stormpot.Allocator<SocketPoolable>java.lang.ExceptionCopyright © 2010-2018 JmxTrans team. All Rights Reserved.