keycloakjar.com.github.benmanes.caffeine.cache.SerializationProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camunda-platform-7-keycloak-run Show documentation
Show all versions of camunda-platform-7-keycloak-run Show documentation
Camunda 7 Keycloak Identity Provider Plugin for Camunda Platform 7 Run
/*
* Copyright 2015 Ben Manes. All Rights Reserved.
*
* 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 com.github.benmanes.caffeine.cache;
import static com.github.benmanes.caffeine.cache.Caffeine.UNSET_INT;
import java.io.Serializable;
import java.util.concurrent.TimeUnit;
import org.checkerframework.checker.nullness.qual.Nullable;
import com.github.benmanes.caffeine.cache.Caffeine.CacheWriterAdapter;
/**
* Serializes the configuration of the cache, reconsitituting it as a {@link Cache},
* {@link LoadingCache}, or {@link AsyncLoadingCache} using {@link Caffeine} upon
* deserialization. The data held by the cache is not retained.
*
* @author [email protected] (Ben Manes)
*/
final class SerializationProxy implements Serializable {
private static final long serialVersionUID = 1;
boolean async;
boolean weakKeys;
boolean weakValues;
boolean softValues;
boolean isRecordingStats;
long refreshAfterWriteNanos;
long expiresAfterWriteNanos;
long expiresAfterAccessNanos;
long maximumSize = UNSET_INT;
long maximumWeight = UNSET_INT;
@Nullable Ticker ticker;
@Nullable Expiry, ?> expiry;
@Nullable Weigher, ?> weigher;
@SuppressWarnings("deprecation")
@Nullable CacheWriter, ?> writer;
@Nullable AsyncCacheLoader, ?> loader;
@Nullable RemovalListener, ?> removalListener;
@SuppressWarnings({"unchecked", "PreferJavaTimeOverload", "deprecation"})
Caffeine
© 2015 - 2024 Weber Informatics LLC | Privacy Policy