All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.terracotta.modules.ehcache.store.nonstop.ToolkitNonstopDisableConfig Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.10.9.2
Show newest version
/*
 * 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;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy