public class RequestResponseTimeoutObserver extends RequestTimeoutObserver
RequestTimeoutObserver
behaviour, The request response timeout observer also
sends a monitor request to the corresponding server and checks whether the corresponding channel
entry in currently in progress. If not the connection is considered dead and will be closed._INSPECT_TIMEOUT, _logger
Constructor and Description |
---|
RequestResponseTimeoutObserver(long requestTimeout,
boolean protocolValidationEnabled) |
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 |
getValidConnectionMessage(SocketAddress serverAddress) |
protected void |
handleOpenSocket(SocketChannel socketChannel,
int watchedSocketLocalPort,
long absoluteTimeout,
ConnectionResource connectionResource) |
getLocalAddressString, getWatchedObjectInvocationMessage, timeoutOccured
public RequestResponseTimeoutObserver(long requestTimeout, boolean protocolValidationEnabled)
protected void handleOpenSocket(SocketChannel socketChannel, int watchedSocketLocalPort, long absoluteTimeout, ConnectionResource connectionResource) throws IOException
handleOpenSocket
in class RequestTimeoutObserver
connectionResource
- the monitored cpeerIOException
protected String getValidConnectionMessage(SocketAddress serverAddress)
getValidConnectionMessage
in class RequestTimeoutObserver
protected String getInvalidConnectionMessage(SocketAddress serverAddress, SocketChannel watchedSocketChannel, Watchdog.WatchedObject watched)
getInvalidConnectionMessage
in class RequestTimeoutObserver
protected String getFailureToCloseInvalidConnectionMessage(SocketAddress serverAddress, SocketChannel watchedSocketChannel)
getFailureToCloseInvalidConnectionMessage
in class RequestTimeoutObserver
protected LogLevel getCloseConnectionLoggingLevel()
getCloseConnectionLoggingLevel
in class RequestTimeoutObserver
Copyright © GigaSpaces.