public class RequestTimeoutObserver extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
_INSPECT_TIMEOUT |
protected static 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 Logger _logger
public void timeoutOccured(Collection<Watchdog.WatchedObject> bucket) throws Exception
Exception
nio.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 cpeerIOException
protected 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.