/*
 * Copyright Terracotta, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.ehcache.core.statistics;

StoreOperationOutcomes
/** * StoreOperationOutcomes */
public interface StoreOperationOutcomes {
The get outcomes
/** * The get outcomes */
enum GetOutcome implements StoreOperationOutcomes {
hit
/** * hit */
HIT,
miss
/** * miss */
MISS,
timeout
/** * timeout */
TIMEOUT }
The put outcomes
/** * The put outcomes */
enum PutOutcome implements StoreOperationOutcomes {
put
/** * put */
PUT,
no-op
/** * no-op */
NOOP,
failure
/** * failure */
FAILURE }
The remove outcomes
/** * The remove outcomes */
enum RemoveOutcome implements StoreOperationOutcomes {
removed
/** * removed */
REMOVED,
miss
/** * miss */
MISS }
the putIfAbsent outcomes
/** * the putIfAbsent outcomes */
enum PutIfAbsentOutcome implements StoreOperationOutcomes {
put
/** * put */
PUT,
hit
/** * hit */
HIT }
the conditional remove outcomes
/** * the conditional remove outcomes */
enum ConditionalRemoveOutcome implements StoreOperationOutcomes {
removed
/** * removed */
REMOVED,
miss
/** * miss */
MISS }
the replace outcomes
/** * the replace outcomes */
enum ReplaceOutcome implements StoreOperationOutcomes {
replaced
/** * replaced */
REPLACED,
miss
/** * miss */
MISS }
the conditional replace outcomes
/** * the conditional replace outcomes */
enum ConditionalReplaceOutcome implements StoreOperationOutcomes {
replaced
/** * replaced */
REPLACED,
miss
/** * miss */
MISS }
the compute outcomes
/** * the compute outcomes */
enum ComputeOutcome implements StoreOperationOutcomes {
hit
/** * hit */
HIT,
miss
/** * miss */
MISS,
put
/** * put */
PUT,
removed
/** * removed */
REMOVED }
the computeIfAbsent outcomes
/** * the computeIfAbsent outcomes */
enum ComputeIfAbsentOutcome implements StoreOperationOutcomes {
hit
/** * hit */
HIT,
put
/** * put */
PUT,
no-op
/** * no-op */
NOOP }
The eviction outcomes.
/** * The eviction outcomes. */
enum EvictionOutcome implements StoreOperationOutcomes {
success.
/** success. */
SUCCESS,
failure
/** failure */
FAILURE }
Outcomes for expiration
/** * Outcomes for expiration */
enum ExpirationOutcome implements StoreOperationOutcomes {
success
/** * success */
SUCCESS } }