@Override protected synchronized void startMonitorThreads() throws IOException { if (isMonitorStarted()) { return; } long readCheckTime = getReadCheckTime(); if (readCheckTime > 0) { setWriteCheckTime(writeCheckValueFromReadCheck(readCheckTime)); } super.startMonitorThreads(); }
@Override protected boolean configuredOk() throws IOException { boolean configured = false; if (ignoreAllWireFormatInfo) { configured = true; } else if (localWireFormatInfo != null && remoteWireFormatInfo != null) { if (!ignoreRemoteWireFormat) { if (LOG.isDebugEnabled()) { LOG.debug("Using min of local: " + localWireFormatInfo + " and remote: " + remoteWireFormatInfo); } long readCheckTime = Math.min(localWireFormatInfo.getMaxInactivityDuration(), remoteWireFormatInfo.getMaxInactivityDuration()); long writeCheckTime = writeCheckValueFromReadCheck(readCheckTime); setReadCheckTime(readCheckTime); setInitialDelayTime(Math.min(localWireFormatInfo.getMaxInactivityDurationInitalDelay(), remoteWireFormatInfo.getMaxInactivityDurationInitalDelay())); setWriteCheckTime(writeCheckTime); } else { if (LOG.isDebugEnabled()) { LOG.debug("Using local: " + localWireFormatInfo); } long readCheckTime = localWireFormatInfo.getMaxInactivityDuration(); long writeCheckTime = writeCheckValueFromReadCheck(readCheckTime); setReadCheckTime(readCheckTime); setInitialDelayTime(localWireFormatInfo.getMaxInactivityDurationInitalDelay()); setWriteCheckTime(writeCheckTime); } configured = true; } return configured; }
@Override protected synchronized void startMonitorThreads() throws IOException { if (isMonitorStarted()) { return; } long readCheckTime = getReadCheckTime(); if (readCheckTime > 0) { setWriteCheckTime(writeCheckValueFromReadCheck(readCheckTime)); } super.startMonitorThreads(); }
@Override protected synchronized void startMonitorThreads() throws IOException { if (isMonitorStarted()) { return; } long readCheckTime = getReadCheckTime(); if (readCheckTime > 0) { setWriteCheckTime(writeCheckValueFromReadCheck(readCheckTime)); } super.startMonitorThreads(); }
@Override protected synchronized void startMonitorThreads() throws IOException { if (isMonitorStarted()) { return; } long readCheckTime = getReadCheckTime(); if (readCheckTime > 0) { setWriteCheckTime(writeCheckValueFromReadCheck(readCheckTime)); } super.startMonitorThreads(); }
@Override protected boolean configuredOk() throws IOException { boolean configured = false; if (ignoreAllWireFormatInfo) { configured = true; } else if (localWireFormatInfo != null && remoteWireFormatInfo != null) { if (!ignoreRemoteWireFormat) { if (LOG.isDebugEnabled()) { LOG.debug("Using min of local: " + localWireFormatInfo + " and remote: " + remoteWireFormatInfo); } long readCheckTime = Math.min(localWireFormatInfo.getMaxInactivityDuration(), remoteWireFormatInfo.getMaxInactivityDuration()); long writeCheckTime = writeCheckValueFromReadCheck(readCheckTime); setReadCheckTime(readCheckTime); setInitialDelayTime(Math.min(localWireFormatInfo.getMaxInactivityDurationInitalDelay(), remoteWireFormatInfo.getMaxInactivityDurationInitalDelay())); setWriteCheckTime(writeCheckTime); } else { if (LOG.isDebugEnabled()) { LOG.debug("Using local: " + localWireFormatInfo); } long readCheckTime = localWireFormatInfo.getMaxInactivityDuration(); long writeCheckTime = writeCheckValueFromReadCheck(readCheckTime); setReadCheckTime(readCheckTime); setInitialDelayTime(localWireFormatInfo.getMaxInactivityDurationInitalDelay()); setWriteCheckTime(writeCheckTime); } configured = true; } return configured; }
@Override protected boolean configuredOk() throws IOException { boolean configured = false; if (ignoreAllWireFormatInfo) { configured = true; } else if (localWireFormatInfo != null && remoteWireFormatInfo != null) { if (!ignoreRemoteWireFormat) { if (LOG.isDebugEnabled()) { LOG.debug("Using min of local: " + localWireFormatInfo + " and remote: " + remoteWireFormatInfo); } long readCheckTime = Math.min(localWireFormatInfo.getMaxInactivityDuration(), remoteWireFormatInfo.getMaxInactivityDuration()); long writeCheckTime = writeCheckValueFromReadCheck(readCheckTime); setReadCheckTime(readCheckTime); setInitialDelayTime(Math.min(localWireFormatInfo.getMaxInactivityDurationInitalDelay(), remoteWireFormatInfo.getMaxInactivityDurationInitalDelay())); setWriteCheckTime(writeCheckTime); } else { if (LOG.isDebugEnabled()) { LOG.debug("Using local: " + localWireFormatInfo); } long readCheckTime = localWireFormatInfo.getMaxInactivityDuration(); long writeCheckTime = writeCheckValueFromReadCheck(readCheckTime); setReadCheckTime(readCheckTime); setInitialDelayTime(localWireFormatInfo.getMaxInactivityDurationInitalDelay()); setWriteCheckTime(writeCheckTime); } configured = true; } return configured; }
@Override protected boolean configuredOk() throws IOException { boolean configured = false; if (ignoreAllWireFormatInfo) { configured = true; } else if (localWireFormatInfo != null && remoteWireFormatInfo != null) { if (!ignoreRemoteWireFormat) { if (LOG.isDebugEnabled()) { LOG.debug("Using min of local: " + localWireFormatInfo + " and remote: " + remoteWireFormatInfo); } long readCheckTime = Math.min(localWireFormatInfo.getMaxInactivityDuration(), remoteWireFormatInfo.getMaxInactivityDuration()); long writeCheckTime = writeCheckValueFromReadCheck(readCheckTime); setReadCheckTime(readCheckTime); setInitialDelayTime(Math.min(localWireFormatInfo.getMaxInactivityDurationInitalDelay(), remoteWireFormatInfo.getMaxInactivityDurationInitalDelay())); setWriteCheckTime(writeCheckTime); } else { if (LOG.isDebugEnabled()) { LOG.debug("Using local: " + localWireFormatInfo); } long readCheckTime = localWireFormatInfo.getMaxInactivityDuration(); long writeCheckTime = writeCheckValueFromReadCheck(readCheckTime); setReadCheckTime(readCheckTime); setInitialDelayTime(localWireFormatInfo.getMaxInactivityDurationInitalDelay()); setWriteCheckTime(writeCheckTime); } configured = true; } return configured; }