Package com.gigaspaces.lrmi.nio.watchdog
Class Watchdog.WatchedObject
java.lang.Object
com.gigaspaces.lrmi.nio.watchdog.Watchdog.WatchedObject
- Enclosing class:
- Watchdog
Object watched by the Watchdog - WatchedObject is used to watch NIO connections
- Since:
- 5.1
- Version:
- 1.0
- Author:
- anna
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWatchedObject(Watchdog.WatchdogGroup group, SocketChannel socket, ConnectionResource client) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetTime()longinthashCode()voidbooleanisInUse()voidsetException(Exception exception) voidsetInUse(boolean inUse) voidsetMonitoringId(String monitoringId) voidStart watchingvoidStop watching
-
Field Details
-
_client
-
-
Constructor Details
-
WatchedObject
- Parameters:
group-socket-
-
-
Method Details
-
getTime
public int getTime() -
getSocket
- Returns:
-
getClient
-
startWatch
public void startWatch()Start watching -
stopWatch
public void stopWatch()Stop watching -
getException
-
setException
-
isInUse
public boolean isInUse()- Returns:
-
setInUse
public void setInUse(boolean inUse) - Parameters:
inUse-
-
equals
-
hashCode
public int hashCode() -
getMonitoringId
-
setMonitoringId
-
getVersion
public long getVersion() -
incrementVersion
public void incrementVersion()
-