public class RequestTimeoutObserver extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
_INSPECT_TIMEOUT |
protected static org.slf4j.Logger |
_logger |
| Constructor and Description |
|---|
RequestTimeoutObserver(long requestTimeout) |
| Modifier and Type | Method and Description |
|---|---|
protected LogLevel |
getCloseConnectionLoggingLevel() |
protected String |
getFailureToCloseInvalidConnectionMessage(SocketAddress serverAddress,
SocketChannel watchedSocketChannel) |
protected String |
getInvalidConnectionMessage(SocketAddress serverAddress,
SocketChannel watchedSocketChannel,
Watchdog.WatchedObject watched) |
protected String |
getLocalAddressString(SocketChannel socketChannel) |
protected String |
getValidConnectionMessage(SocketAddress serverAddress) |
protected static String |
getWatchedObjectInvocationMessage(Watchdog.WatchedObject watched) |
protected void |
handleOpenSocket(SocketChannel socketChannel,
int watchedObjectLocalPort,
long absoluteTimeout,
ConnectionResource connectionResource) |
void |
timeoutOccured(Collection<Watchdog.WatchedObject> bucket)
bucket can never be empty
|
protected static final int _INSPECT_TIMEOUT
protected static final org.slf4j.Logger _logger
public void timeoutOccured(Collection<Watchdog.WatchedObject> bucket) throws Exception
Exceptionnio.watchdog.Watchdog#add(Map>, WatchedObject) ,
nio.watchdog.TimeoutObserver#timeoutOccured(nio.watchdog.Watchdog.WatchedObject)protected void handleOpenSocket(SocketChannel socketChannel, int watchedObjectLocalPort, long absoluteTimeout, ConnectionResource connectionResource) throws IOException
connectionResource - the monitored cpeerIOExceptionprotected String getValidConnectionMessage(SocketAddress serverAddress)
protected String getInvalidConnectionMessage(SocketAddress serverAddress, SocketChannel watchedSocketChannel, Watchdog.WatchedObject watched)
protected String getFailureToCloseInvalidConnectionMessage(SocketAddress serverAddress, SocketChannel watchedSocketChannel)
protected String getLocalAddressString(SocketChannel socketChannel)
protected LogLevel getCloseConnectionLoggingLevel()
protected static String getWatchedObjectInvocationMessage(Watchdog.WatchedObject watched)
Copyright © GigaSpaces.