long deleteDelay = -1;
long writeDelay = -1;
long idleDelay;
long ttlDelay;
if (mapContainer.getMapStoreScheduler() != null) {
final ScheduledEntry scheduledEntry = mapContainer.getMapStoreScheduler().get(key);
if (scheduledEntry != null) {
if (scheduledEntry.getValue() == null) {
deleteDelay = extraDelay + findDelayMillis(scheduledEntry);
} else {
writeDelay = extraDelay + findDelayMillis(scheduledEntry);
}
}