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