@Contract(threading=SAFE) public abstract class AbstractIOSessionPool<T> extends Object implements ModalCloseable
Constructor and Description |
---|
AbstractIOSessionPool() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
close(CloseMode closeMode)
Closes this process or endpoint and releases any system resources associated
with it.
|
void |
closeIdle(TimeValue idleTime) |
protected abstract void |
closeSession(IOSession ioSession,
CloseMode closeMode) |
protected abstract Future<IOSession> |
connectSession(T namedEndpoint,
Timeout connectTimeout,
FutureCallback<IOSession> callback) |
void |
enumAvailable(Callback<IOSession> callback) |
Set<T> |
getRoutes() |
Future<IOSession> |
getSession(T endpoint,
Timeout connectTimeout,
FutureCallback<IOSession> callback) |
String |
toString() |
protected abstract void |
validateSession(IOSession ioSession,
Callback<Boolean> callback) |
protected abstract Future<IOSession> connectSession(T namedEndpoint, Timeout connectTimeout, FutureCallback<IOSession> callback)
protected abstract void validateSession(IOSession ioSession, Callback<Boolean> callback)
public final void close(CloseMode closeMode)
ModalCloseable
close
in interface ModalCloseable
closeMode
- How to close the receiver.public final void close()
close
in interface Closeable
close
in interface AutoCloseable
public final Future<IOSession> getSession(T endpoint, Timeout connectTimeout, FutureCallback<IOSession> callback)
public final void closeIdle(TimeValue idleTime)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.