Example usage for org.springframework.web.context.request.async CallableProcessingInterceptor hashCode

List of usage examples for org.springframework.web.context.request.async CallableProcessingInterceptor hashCode

Introduction

In this page you can find the example usage for org.springframework.web.context.request.async CallableProcessingInterceptor hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:org.springframework.web.context.request.async.WebAsyncManager.java

/**
 * Register a {@link CallableProcessingInterceptor} without a key.
 * The key is derived from the class name and hashcode.
 * @param interceptors one or more interceptors to register
 *//*  w  ww.  jav a  2 s  .  c om*/
public void registerCallableInterceptors(CallableProcessingInterceptor... interceptors) {
    Assert.notNull(interceptors, "A CallableProcessingInterceptor is required");
    for (CallableProcessingInterceptor interceptor : interceptors) {
        String key = interceptor.getClass().getName() + ":" + interceptor.hashCode();
        this.callableInterceptors.put(key, interceptor);
    }
}