repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/repository/package-info.java
fullstack/src/main/java/org/ehcache/sample/repository/package-info.java
/** * Spring Data JPA repositories. */ package org.ehcache.sample.repository;
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/repository/CustomAuditEventRepository.java
fullstack/src/main/java/org/ehcache/sample/repository/CustomAuditEventRepository.java
package org.ehcache.sample.repository; import org.ehcache.sample.config.Constants; import org.ehcache.sample.config.audit.AuditEventConverter; import org.ehcache.sample.domain.PersistentAuditEvent; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.actuate.audit.AuditEvent; impor...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/repository/PersistenceAuditEventRepository.java
fullstack/src/main/java/org/ehcache/sample/repository/PersistenceAuditEventRepository.java
package org.ehcache.sample.repository; import org.ehcache.sample.domain.PersistentAuditEvent; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; import java.time.Instant; import java.util.List; /** * Spring Data...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/repository/AuthorityRepository.java
fullstack/src/main/java/org/ehcache/sample/repository/AuthorityRepository.java
package org.ehcache.sample.repository; import org.ehcache.sample.domain.Authority; import org.springframework.data.jpa.repository.JpaRepository; /** * Spring Data JPA repository for the Authority entity. */ public interface AuthorityRepository extends JpaRepository<Authority, String> { }
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/security/package-info.java
fullstack/src/main/java/org/ehcache/sample/security/package-info.java
/** * Spring Security configuration. */ package org.ehcache.sample.security;
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/security/SpringSecurityAuditorAware.java
fullstack/src/main/java/org/ehcache/sample/security/SpringSecurityAuditorAware.java
package org.ehcache.sample.security; import org.ehcache.sample.config.Constants; import java.util.Optional; import org.springframework.data.domain.AuditorAware; import org.springframework.stereotype.Component; /** * Implementation of AuditorAware based on Spring Security. */ @Component public class SpringSecurity...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/security/UserNotActivatedException.java
fullstack/src/main/java/org/ehcache/sample/security/UserNotActivatedException.java
package org.ehcache.sample.security; import org.springframework.security.core.AuthenticationException; /** * This exception is thrown in case of a not activated user trying to authenticate. */ public class UserNotActivatedException extends AuthenticationException { private static final long serialVersionUID = ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/security/SecurityUtils.java
fullstack/src/main/java/org/ehcache/sample/security/SecurityUtils.java
package org.ehcache.sample.security; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; import java.util.Optional; /** * Utility class for Spring Security. */ pub...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/security/AuthoritiesConstants.java
fullstack/src/main/java/org/ehcache/sample/security/AuthoritiesConstants.java
package org.ehcache.sample.security; /** * Constants for Spring Security authorities. */ public final class AuthoritiesConstants { public static final String ADMIN = "ROLE_ADMIN"; public static final String USER = "ROLE_USER"; public static final String ANONYMOUS = "ROLE_ANONYMOUS"; private Autho...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/security/DomainUserDetailsService.java
fullstack/src/main/java/org/ehcache/sample/security/DomainUserDetailsService.java
package org.ehcache.sample.security; import org.ehcache.sample.domain.User; import org.ehcache.sample.repository.UserRepository; import org.hibernate.validator.internal.constraintvalidators.hv.EmailValidator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.core.GrantedAutho...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/security/jwt/TokenProvider.java
fullstack/src/main/java/org/ehcache/sample/security/jwt/TokenProvider.java
package org.ehcache.sample.security.jwt; import java.nio.charset.StandardCharsets; import java.security.Key; import java.util.*; import java.util.stream.Collectors; import javax.annotation.PostConstruct; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.authentication.Userna...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/security/jwt/JWTConfigurer.java
fullstack/src/main/java/org/ehcache/sample/security/jwt/JWTConfigurer.java
package org.ehcache.sample.security.jwt; import org.springframework.security.config.annotation.SecurityConfigurerAdapter; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.web.DefaultSecurityFilterChain; import org.springframework.security.web.authenti...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/security/jwt/JWTFilter.java
fullstack/src/main/java/org/ehcache/sample/security/jwt/JWTFilter.java
package org.ehcache.sample.security.jwt; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.util.StringUtils; import org.springframework.web.filter.GenericFilterBean; import javax.servlet.FilterChain; import javax...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/SecurityConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/SecurityConfiguration.java
package org.ehcache.sample.config; import org.ehcache.sample.security.*; import org.ehcache.sample.security.jwt.*; import org.springframework.beans.factory.BeanInitializationException; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springfra...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/ApplicationProperties.java
fullstack/src/main/java/org/ehcache/sample/config/ApplicationProperties.java
package org.ehcache.sample.config; import org.ehcache.clustered.common.Consistency; import org.springframework.boot.context.properties.ConfigurationProperties; import java.net.URI; /** * Properties specific to Demo. * <p> * Properties are configured in the application.yml file. * See {@link io.github.jhipster.co...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/CloudDatabaseConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/CloudDatabaseConfiguration.java
package org.ehcache.sample.config; import io.github.jhipster.config.JHipsterConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.cloud.config.java.AbstractCloudConfig; import org.springframework.context.annotation.*; import javax.sql.DataSource; import org.springframework.bo...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/DefaultProfileUtil.java
fullstack/src/main/java/org/ehcache/sample/config/DefaultProfileUtil.java
package org.ehcache.sample.config; import io.github.jhipster.config.JHipsterConstants; import org.springframework.boot.SpringApplication; import org.springframework.core.env.Environment; import java.util.*; /** * Utility class to load a Spring profile to be used as default * when there is no <code>spring.profiles...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/DatabaseConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/DatabaseConfiguration.java
package org.ehcache.sample.config; import io.github.jhipster.config.JHipsterConstants; import io.github.jhipster.config.h2.H2ConfigurationHelper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.cache.CacheManager; import org.springframework.context.annotation.Bean; import org.spring...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/CacheConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/CacheConfiguration.java
package org.ehcache.sample.config; import io.github.jhipster.config.JHipsterConstants; import io.github.jhipster.config.JHipsterProperties; import org.ehcache.clustered.client.config.ClusteredStoreConfiguration; import org.ehcache.clustered.client.config.builders.ClusteredResourcePoolBuilder; import org.ehcache.cluste...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/package-info.java
fullstack/src/main/java/org/ehcache/sample/config/package-info.java
/** * Spring Framework configuration files. */ package org.ehcache.sample.config;
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/DateTimeFormatConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/DateTimeFormatConfiguration.java
package org.ehcache.sample.config; import org.springframework.context.annotation.Configuration; import org.springframework.format.FormatterRegistry; import org.springframework.format.datetime.standard.DateTimeFormatterRegistrar; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; /** * Configu...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/AsyncConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/AsyncConfiguration.java
package org.ehcache.sample.config; import io.github.jhipster.async.ExceptionHandlingAsyncTaskExecutor; import io.github.jhipster.config.JHipsterProperties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; import org.springframework.aop....
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/WebConfigurer.java
fullstack/src/main/java/org/ehcache/sample/config/WebConfigurer.java
package org.ehcache.sample.config; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.servlet.InstrumentedFilter; import com.codahale.metrics.servlets.MetricsServlet; import io.github.jhipster.config.JHipsterConstants; import io.github.jhipster.config.JHipsterProperties; import io.github.jhipster....
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/JacksonConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/JacksonConfiguration.java
package org.ehcache.sample.config; import com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module; import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.fasterxml.jackson.module.afterburner.AfterburnerModule; import org.springframework.contex...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/LoggingConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/LoggingConfiguration.java
package org.ehcache.sample.config; import java.net.InetSocketAddress; import java.util.Iterator; import io.github.jhipster.config.JHipsterProperties; import ch.qos.logback.classic.AsyncAppender; import ch.qos.logback.classic.Level; import ch.qos.logback.classic.LoggerContext; import ch.qos.logback.classic.boolex.OnM...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/MetricsConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/MetricsConfiguration.java
package org.ehcache.sample.config; import io.github.jhipster.config.JHipsterProperties; import com.codahale.metrics.JmxReporter; import com.codahale.metrics.JvmAttributeGaugeSet; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.Slf4jReporter; import com.codahale.metrics.health.HealthCheckRegist...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/LiquibaseConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/LiquibaseConfiguration.java
package org.ehcache.sample.config; import javax.sql.DataSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties; import org.springframework.cache.CacheManager; import org...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/CustomInfoContributor.java
fullstack/src/main/java/org/ehcache/sample/config/CustomInfoContributor.java
package org.ehcache.sample.config; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.actuate.info.Info; import org.springframework.boot.actuate.info.InfoContributor; import org.springframework.stereotype.Component; import java.net.InetAddress; import java.net.UnknownHostExceptio...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/Constants.java
fullstack/src/main/java/org/ehcache/sample/config/Constants.java
package org.ehcache.sample.config; /** * Application constants. */ public final class Constants { // Regex for acceptable logins public static final String LOGIN_REGEX = "^[_.@A-Za-z0-9-]*$"; public static final String SYSTEM_ACCOUNT = "system"; public static final String ANONYMOUS_USER = "anonymou...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/LoggingAspectConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/LoggingAspectConfiguration.java
package org.ehcache.sample.config; import org.ehcache.sample.aop.logging.LoggingAspect; import io.github.jhipster.config.JHipsterConstants; import org.springframework.context.annotation.*; import org.springframework.core.env.Environment; @Configuration @EnableAspectJAutoProxy public class LoggingAspectConfiguration...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/LocaleConfiguration.java
fullstack/src/main/java/org/ehcache/sample/config/LocaleConfiguration.java
package org.ehcache.sample.config; import io.github.jhipster.config.locale.AngularCookieLocaleResolver; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.LocaleResolver; import org.springframework.web.servlet.config....
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/audit/AuditEventConverter.java
fullstack/src/main/java/org/ehcache/sample/config/audit/AuditEventConverter.java
package org.ehcache.sample.config.audit; import org.ehcache.sample.domain.PersistentAuditEvent; import org.springframework.boot.actuate.audit.AuditEvent; import org.springframework.security.web.authentication.WebAuthenticationDetails; import org.springframework.stereotype.Component; import java.util.*; @Component p...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/config/audit/package-info.java
fullstack/src/main/java/org/ehcache/sample/config/audit/package-info.java
/** * Audit specific code. */ package org.ehcache.sample.config.audit;
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/AccountResource.java
fullstack/src/main/java/org/ehcache/sample/web/rest/AccountResource.java
package org.ehcache.sample.web.rest; import com.codahale.metrics.annotation.Timed; import org.ehcache.sample.domain.User; import org.ehcache.sample.repository.UserRepository; import org.ehcache.sample.security.SecurityUtils; import org.ehcache.sample.service.MailService; import org.ehcache.sample.service.UserService;...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/UserJWTController.java
fullstack/src/main/java/org/ehcache/sample/web/rest/UserJWTController.java
package org.ehcache.sample.web.rest; import org.ehcache.sample.security.jwt.JWTFilter; import org.ehcache.sample.security.jwt.TokenProvider; import org.ehcache.sample.web.rest.vm.LoginVM; import com.codahale.metrics.annotation.Timed; import com.fasterxml.jackson.annotation.JsonProperty; import org.springframework.ht...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/package-info.java
fullstack/src/main/java/org/ehcache/sample/web/rest/package-info.java
/** * Spring MVC REST controllers. */ package org.ehcache.sample.web.rest;
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/StarResource.java
fullstack/src/main/java/org/ehcache/sample/web/rest/StarResource.java
package org.ehcache.sample.web.rest; import org.ehcache.sample.domain.Actor; import org.ehcache.sample.repository.ActorRepository; import org.ehcache.sample.service.ActorService; import org.ehcache.sample.service.ResourceCallService; import org.ehcache.sample.service.WeatherService; import org.ehcache.sample.service.d...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/LogsResource.java
fullstack/src/main/java/org/ehcache/sample/web/rest/LogsResource.java
package org.ehcache.sample.web.rest; import org.ehcache.sample.web.rest.vm.LoggerVM; import ch.qos.logback.classic.Level; import ch.qos.logback.classic.LoggerContext; import com.codahale.metrics.annotation.Timed; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.we...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/UserResource.java
fullstack/src/main/java/org/ehcache/sample/web/rest/UserResource.java
package org.ehcache.sample.web.rest; import org.ehcache.sample.config.Constants; import org.ehcache.sample.domain.User; import org.ehcache.sample.repository.UserRepository; import org.ehcache.sample.security.AuthoritiesConstants; import org.ehcache.sample.service.MailService; import org.ehcache.sample.service.UserServ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/ActorResource.java
fullstack/src/main/java/org/ehcache/sample/web/rest/ActorResource.java
package org.ehcache.sample.web.rest; import com.codahale.metrics.annotation.Timed; import org.ehcache.sample.domain.Actor; import org.ehcache.sample.service.ActorService; import org.ehcache.sample.web.rest.errors.BadRequestAlertException; import org.ehcache.sample.web.rest.util.HeaderUtil; import org.ehcache.sample.we...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/AuditResource.java
fullstack/src/main/java/org/ehcache/sample/web/rest/AuditResource.java
package org.ehcache.sample.web.rest; import org.ehcache.sample.service.AuditEventService; import org.ehcache.sample.web.rest.util.PaginationUtil; import io.github.jhipster.web.util.ResponseUtil; import org.springframework.boot.actuate.audit.AuditEvent; import org.springframework.data.domain.Page; import org.springfra...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/util/HeaderUtil.java
fullstack/src/main/java/org/ehcache/sample/web/rest/util/HeaderUtil.java
package org.ehcache.sample.web.rest.util; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpHeaders; /** * Utility class for HTTP headers creation. */ public final class HeaderUtil { private static final Logger log = LoggerFactory.getLogger(HeaderUtil.class); pri...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/util/PaginationUtil.java
fullstack/src/main/java/org/ehcache/sample/web/rest/util/PaginationUtil.java
package org.ehcache.sample.web.rest.util; import org.springframework.data.domain.Page; import org.springframework.http.HttpHeaders; import org.springframework.web.util.UriComponentsBuilder; /** * Utility class for handling pagination. * * <p> * Pagination uses the same principles as the <a href="https://developer...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/InvalidPasswordException.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/InvalidPasswordException.java
package org.ehcache.sample.web.rest.errors; import org.zalando.problem.AbstractThrowableProblem; import org.zalando.problem.Status; public class InvalidPasswordException extends AbstractThrowableProblem { private static final long serialVersionUID = 1L; public InvalidPasswordException() { super(Erro...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/CustomParameterizedException.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/CustomParameterizedException.java
package org.ehcache.sample.web.rest.errors; import org.zalando.problem.AbstractThrowableProblem; import java.util.HashMap; import java.util.Map; import static org.zalando.problem.Status.BAD_REQUEST; /** * Custom, parameterized exception, which can be translated on the client side. * For example: * * <pre> * th...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/package-info.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/package-info.java
/** * Specific errors used with Zalando's "problem-spring-web" library. * * More information on https://github.com/zalando/problem-spring-web */ package org.ehcache.sample.web.rest.errors;
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/LoginAlreadyUsedException.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/LoginAlreadyUsedException.java
package org.ehcache.sample.web.rest.errors; public class LoginAlreadyUsedException extends BadRequestAlertException { private static final long serialVersionUID = 1L; public LoginAlreadyUsedException() { super(ErrorConstants.LOGIN_ALREADY_USED_TYPE, "Login name already used!", "userManagement", "user...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/EmailNotFoundException.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/EmailNotFoundException.java
package org.ehcache.sample.web.rest.errors; import org.zalando.problem.AbstractThrowableProblem; import org.zalando.problem.Status; public class EmailNotFoundException extends AbstractThrowableProblem { private static final long serialVersionUID = 1L; public EmailNotFoundException() { super(ErrorCon...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/InternalServerErrorException.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/InternalServerErrorException.java
package org.ehcache.sample.web.rest.errors; import org.zalando.problem.AbstractThrowableProblem; import org.zalando.problem.Status; /** * Simple exception with a message, that returns an Internal Server Error code. */ public class InternalServerErrorException extends AbstractThrowableProblem { private static f...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/ErrorConstants.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/ErrorConstants.java
package org.ehcache.sample.web.rest.errors; import java.net.URI; public final class ErrorConstants { public static final String ERR_CONCURRENCY_FAILURE = "error.concurrencyFailure"; public static final String ERR_VALIDATION = "error.validation"; public static final String PROBLEM_BASE_URL = "https://www....
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/FieldErrorVM.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/FieldErrorVM.java
package org.ehcache.sample.web.rest.errors; import java.io.Serializable; public class FieldErrorVM implements Serializable { private static final long serialVersionUID = 1L; private final String objectName; private final String field; private final String message; public FieldErrorVM(String d...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/EmailAlreadyUsedException.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/EmailAlreadyUsedException.java
package org.ehcache.sample.web.rest.errors; public class EmailAlreadyUsedException extends BadRequestAlertException { private static final long serialVersionUID = 1L; public EmailAlreadyUsedException() { super(ErrorConstants.EMAIL_ALREADY_USED_TYPE, "Email is already in use!", "userManagement", "emai...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/BadRequestAlertException.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/BadRequestAlertException.java
package org.ehcache.sample.web.rest.errors; import org.zalando.problem.AbstractThrowableProblem; import org.zalando.problem.Status; import java.net.URI; import java.util.HashMap; import java.util.Map; public class BadRequestAlertException extends AbstractThrowableProblem { private static final long serialVersio...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/errors/ExceptionTranslator.java
fullstack/src/main/java/org/ehcache/sample/web/rest/errors/ExceptionTranslator.java
package org.ehcache.sample.web.rest.errors; import org.ehcache.sample.web.rest.util.HeaderUtil; import org.springframework.dao.ConcurrencyFailureException; import org.springframework.http.ResponseEntity; import org.springframework.validation.BindingResult; import org.springframework.web.bind.MethodArgumentNotValidExc...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/vm/package-info.java
fullstack/src/main/java/org/ehcache/sample/web/rest/vm/package-info.java
/** * View Models used by Spring MVC REST controllers. */ package org.ehcache.sample.web.rest.vm;
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/vm/LoggerVM.java
fullstack/src/main/java/org/ehcache/sample/web/rest/vm/LoggerVM.java
package org.ehcache.sample.web.rest.vm; import ch.qos.logback.classic.Logger; /** * View Model object for storing a Logback logger. */ public class LoggerVM { private String name; private String level; public LoggerVM(Logger logger) { this.name = logger.getName(); this.level = logger....
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/vm/KeyAndPasswordVM.java
fullstack/src/main/java/org/ehcache/sample/web/rest/vm/KeyAndPasswordVM.java
package org.ehcache.sample.web.rest.vm; /** * View Model object for storing the user's key and password. */ public class KeyAndPasswordVM { private String key; private String newPassword; public String getKey() { return key; } public void setKey(String key) { this.key = key; ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/vm/ManagedUserVM.java
fullstack/src/main/java/org/ehcache/sample/web/rest/vm/ManagedUserVM.java
package org.ehcache.sample.web.rest.vm; import org.ehcache.sample.service.dto.UserDTO; import javax.validation.constraints.Size; /** * View Model extending the UserDTO, which is meant to be used in the user management UI. */ public class ManagedUserVM extends UserDTO { public static final int PASSWORD_MIN_LENG...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/fullstack/src/main/java/org/ehcache/sample/web/rest/vm/LoginVM.java
fullstack/src/main/java/org/ehcache/sample/web/rest/vm/LoginVM.java
package org.ehcache.sample.web.rest.vm; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; /** * View Model object for storing a user's credentials. */ public class LoginVM { @NotNull @Size(min = 1, max = 50) private String username; @NotNull @Size(min = Man...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/basic/src/main/java/org/ehcache/sample/BasicXML.java
basic/src/main/java/org/ehcache/sample/BasicXML.java
package org.ehcache.sample; import org.ehcache.Cache; import org.ehcache.CacheManager; import org.ehcache.config.Configuration; import org.ehcache.xml.XmlConfiguration; import org.slf4j.Logger; import static org.ehcache.config.builders.CacheManagerBuilder.newCacheManager; import static org.slf4j.LoggerFactory.getLogg...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/basic/src/main/java/org/ehcache/sample/BasicProgrammatic.java
basic/src/main/java/org/ehcache/sample/BasicProgrammatic.java
package org.ehcache.sample; import org.ehcache.Cache; import org.ehcache.CacheManager; import org.slf4j.Logger; import static org.ehcache.config.builders.CacheConfigurationBuilder.newCacheConfigurationBuilder; import static org.ehcache.config.builders.CacheManagerBuilder.newCacheManagerBuilder; import static org.ehca...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/Main.java
scale-continuum/src/main/java/org/terracotta/sample/Main.java
package org.terracotta.sample; import io.rainfall.statistics.StatisticsPeekHolder; import org.terracotta.sample.collector.Config; import org.terracotta.sample.collector.Entry; import org.terracotta.sample.collector.PerformanceMetricsCollector; import org.terracotta.sample.collector.QueueReporter; import com.google.gs...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/collector/Entry.java
scale-continuum/src/main/java/org/terracotta/sample/collector/Entry.java
package org.terracotta.sample.collector; /** * @author Aurelien Broszniowski */ public class Entry { private String name; private String value; public Entry() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getValue() { ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/collector/Config.java
scale-continuum/src/main/java/org/terracotta/sample/collector/Config.java
package org.terracotta.sample.collector; import org.ehcache.impl.internal.store.offheap.MemorySizeParser; /** * @author Aurelien Broszniowski */ public class Config { private final long datasetCount; private final boolean cacheEnabled; private final Long heapSizeCount; private final Long offheapSizeCount; ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/collector/Ehcache3Stats.java
scale-continuum/src/main/java/org/terracotta/sample/collector/Ehcache3Stats.java
/* * 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 ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/collector/QueueReporter.java
scale-continuum/src/main/java/org/terracotta/sample/collector/QueueReporter.java
/* * 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 ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/collector/PerformanceMetricsCollector.java
scale-continuum/src/main/java/org/terracotta/sample/collector/PerformanceMetricsCollector.java
/* * 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 ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/dao/SoRDao.java
scale-continuum/src/main/java/org/terracotta/sample/dao/SoRDao.java
/* * 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 ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/dao/SorLoaderWriter.java
scale-continuum/src/main/java/org/terracotta/sample/dao/SorLoaderWriter.java
package org.terracotta.sample.dao; import org.ehcache.spi.loaderwriter.BulkCacheLoadingException; import org.ehcache.spi.loaderwriter.BulkCacheWritingException; import org.ehcache.spi.loaderwriter.CacheLoaderWriter; import java.util.HashMap; import java.util.Map; /** * @author Aurelien Broszniowski */ public class...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/service/DataService.java
scale-continuum/src/main/java/org/terracotta/sample/service/DataService.java
package org.terracotta.sample.service; /** * @author Aurelien Broszniowski */ public interface DataService<T> { T loadData(Long key); }
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/service/CachedDataService.java
scale-continuum/src/main/java/org/terracotta/sample/service/CachedDataService.java
package org.terracotta.sample.service; import org.ehcache.Cache; /** * @author Aurelien Broszniowski */ public class CachedDataService implements DataService<byte[]> { private final Cache<Long, byte[]> cache; public CachedDataService(final Cache<Long, byte[]> cache) { this.cache = cache; } @Override ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/scale-continuum/src/main/java/org/terracotta/sample/service/UncachedDataService.java
scale-continuum/src/main/java/org/terracotta/sample/service/UncachedDataService.java
package org.terracotta.sample.service; import io.rainfall.ObjectGenerator; import org.terracotta.sample.dao.SoRDao; /** * @author Aurelien Broszniowski */ public class UncachedDataService<T> implements DataService<T> { private final SoRDao<T> soRDao; public UncachedDataService(final ObjectGenerator<T> valueGe...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/clustered/src/main/java/org/ehcache/sample/ClusteredXML.java
clustered/src/main/java/org/ehcache/sample/ClusteredXML.java
package org.ehcache.sample; import java.net.URL; import org.ehcache.Cache; import org.ehcache.CacheManager; import org.ehcache.config.Configuration; import org.ehcache.xml.XmlConfiguration; import org.slf4j.Logger; import static org.ehcache.config.builders.CacheManagerBuilder.newCacheManager; import static org.slf4j...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/clustered/src/main/java/org/ehcache/sample/ClusteredProgrammatic.java
clustered/src/main/java/org/ehcache/sample/ClusteredProgrammatic.java
package org.ehcache.sample; import java.net.URI; import org.ehcache.Cache; import org.ehcache.CacheManager; import org.slf4j.Logger; import static java.net.URI.create; import static org.ehcache.clustered.client.config.builders.ClusteredResourcePoolBuilder.clusteredDedicated; import static org.ehcache.clustered.clien...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/caching-still-matters/src/main/java/SystemOfRecord.java
caching-still-matters/src/main/java/SystemOfRecord.java
import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; public final class SystemOfRecord { private static final Logger LOG = LoggerFactory.getLogger(AsideVsPassthrough.class); ...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/caching-still-matters/src/main/java/CacheUsage.java
caching-still-matters/src/main/java/CacheUsage.java
import org.ehcache.config.CacheConfiguration; import org.ehcache.config.builders.CacheConfigurationBuilder; import org.ehcache.config.builders.ResourcePoolsBuilder; import org.ehcache.jsr107.Eh107Configuration; import org.ehcache.jsr107.EhcacheCachingProvider; import java.util.concurrent.TimeUnit; import java.util.str...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/caching-still-matters/src/main/java/JvmCaching.java
caching-still-matters/src/main/java/JvmCaching.java
/** * Demonstrate that the JDK is caching the boxed form of the most frequently used integers. */ public class JvmCaching { public static void main(String[] args) { if(Integer.valueOf(100) == Integer.valueOf(100)) { System.out.println("Same instance"); } else { System.err.println("Not the same...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/caching-still-matters/src/main/java/AsideVsPassthrough.java
caching-still-matters/src/main/java/AsideVsPassthrough.java
import org.ehcache.Cache; import org.ehcache.CacheManager; import org.ehcache.config.CacheConfiguration; import org.ehcache.config.builders.CacheConfigurationBuilder; import org.ehcache.config.builders.CacheManagerBuilder; import org.ehcache.config.builders.ExpiryPolicyBuilder; import org.ehcache.config.builders.Resour...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/caching-still-matters/src/main/java/SorLoaderWriter.java
caching-still-matters/src/main/java/SorLoaderWriter.java
import org.ehcache.spi.loaderwriter.CacheLoaderWriter; /** * Created by adah on 2017-02-20. */ public class SorLoaderWriter implements CacheLoaderWriter<String, String> { private final SystemOfRecord systemOfRecord; public SorLoaderWriter(SystemOfRecord systemOfRecord) { this.systemOfRecord = systemOfRecord...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/jsr107/src/main/java/org/ehcache/sample/CreateExtendedJCache.java
jsr107/src/main/java/org/ehcache/sample/CreateExtendedJCache.java
package org.ehcache.sample; import org.slf4j.Logger; import javax.cache.Cache; import javax.cache.CacheManager; import javax.cache.Caching; import javax.cache.configuration.FactoryBuilder; import javax.cache.configuration.MutableConfiguration; import javax.cache.expiry.CreatedExpiryPolicy; import javax.cache.expiry.D...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/jsr107/src/main/java/org/ehcache/sample/BaseJCacheTester.java
jsr107/src/main/java/org/ehcache/sample/BaseJCacheTester.java
package org.ehcache.sample; import org.ehcache.config.CacheRuntimeConfiguration; import org.ehcache.config.ResourceType; import org.ehcache.jsr107.Eh107Configuration; import org.slf4j.Logger; import javax.cache.Cache; import static org.slf4j.LoggerFactory.getLogger; /** * Created by fabien.sanglier on 10/8/16. */...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/jsr107/src/main/java/org/ehcache/sample/CreateBasicJCacheProgrammatic.java
jsr107/src/main/java/org/ehcache/sample/CreateBasicJCacheProgrammatic.java
package org.ehcache.sample; import org.slf4j.Logger; import javax.cache.Cache; import javax.cache.CacheManager; import javax.cache.Caching; import javax.cache.configuration.FactoryBuilder; import javax.cache.configuration.MutableConfiguration; import javax.cache.expiry.CreatedExpiryPolicy; import javax.cache.expiry.D...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/jsr107/src/main/java/org/ehcache/sample/CreateBasicJCacheWithXML.java
jsr107/src/main/java/org/ehcache/sample/CreateBasicJCacheWithXML.java
package org.ehcache.sample; import org.slf4j.Logger; import javax.cache.Cache; import javax.cache.CacheManager; import javax.cache.Caching; import javax.cache.spi.CachingProvider; import static org.slf4j.LoggerFactory.getLogger; /** * Created by fabien.sanglier on 10/6/16. */ public class CreateBasicJCacheWithXML...
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
ehcache/ehcache3-samples
https://github.com/ehcache/ehcache3-samples/blob/51678052dbe66701eda3b7aff483252a94345ce5/jsr107/src/main/java/org/ehcache/sample/KeyValueGenerator.java
jsr107/src/main/java/org/ehcache/sample/KeyValueGenerator.java
package org.ehcache.sample; /** * Created by fabien.sanglier on 10/8/16. */ public interface KeyValueGenerator<K, V> { K getKey(Number k); V getValue(Number v); }
java
Apache-2.0
51678052dbe66701eda3b7aff483252a94345ce5
2026-01-05T02:40:54.100300Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/util/ExamplesTestData.java
src/test/java/org/apache/flink/graph/streaming/util/ExamplesTestData.java
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/util/AdjacencyListGraphTest.java
src/test/java/org/apache/flink/graph/streaming/util/AdjacencyListGraphTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/util/DisjointSetTest.java
src/test/java/org/apache/flink/graph/streaming/util/DisjointSetTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/GraphStreamTestUtils.java
src/test/java/org/apache/flink/graph/streaming/test/GraphStreamTestUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestReverse.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestReverse.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestUndirected.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestUndirected.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestFilterVertices.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestFilterVertices.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestMapEdges.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestMapEdges.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestUnion.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestUnion.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestNumberOfEntities.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestNumberOfEntities.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestFilterEdges.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestFilterEdges.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestGetVertices.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestGetVertices.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestSlice.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestSlice.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestGetDegrees.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestGetDegrees.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestGraphStreamCreation.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestGraphStreamCreation.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false
vasia/gelly-streaming
https://github.com/vasia/gelly-streaming/blob/76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9/src/test/java/org/apache/flink/graph/streaming/test/operations/TestDistinct.java
src/test/java/org/apache/flink/graph/streaming/test/operations/TestDistinct.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
Apache-2.0
76fb3f7d8bac7ff1bc96dd6110dac93f72692cf9
2026-01-05T02:40:57.674434Z
false