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

com.tangosol.internal.util.AtomicsHelper Maven / Gradle / Ivy

There is a newer version: 24.09
Show newest version
/*
 * Copyright (c) 2000, 2021, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */
package com.tangosol.internal.util;

import java.util.concurrent.atomic.AtomicLong;
import java.util.function.LongSupplier;

/**
 * A helper class providing supplier method to operate on the supplied Atomic variable.
 *
 * @author hr  2021.10.29
 */
public class AtomicsHelper
    {
    public static LongSupplier newIncrementor(AtomicLong atomic)
        {
        return atomic::incrementAndGet;
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy