org.terracotta.modules.ehcache.store.nonstop.ToolkitNonstopDisableConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ehcache Show documentation
Show all versions of ehcache Show documentation
Ehcache is an open source, standards-based cache used to boost performance,
offload the database and simplify scalability. Ehcache is robust, proven and full-featured and
this has made it the most widely-used Java-based cache.
/*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*/
package org.terracotta.modules.ehcache.store.nonstop;
import org.terracotta.toolkit.nonstop.NonStopConfiguration;
import org.terracotta.toolkit.nonstop.NonStopConfigurationFields.NonStopReadTimeoutBehavior;
import org.terracotta.toolkit.nonstop.NonStopConfigurationFields.NonStopWriteTimeoutBehavior;
public class ToolkitNonstopDisableConfig implements NonStopConfiguration {
@Override
public NonStopReadTimeoutBehavior getReadOpNonStopTimeoutBehavior() {
return NonStopReadTimeoutBehavior.EXCEPTION;
}
@Override
public NonStopWriteTimeoutBehavior getWriteOpNonStopTimeoutBehavior() {
return NonStopWriteTimeoutBehavior.EXCEPTION;
}
@Override
public long getTimeoutMillis() {
return -1;
}
@Override
public long getSearchTimeoutMillis() {
return -1;
}
@Override
public boolean isEnabled() {
return false;
}
@Override
public boolean isImmediateTimeoutEnabled() {
return false;
}
}