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

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

Introduction

In this page you can find the example usage for org.springframework.web.context.request.async DeferredResultProcessingInterceptor 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 one or more {@link DeferredResultProcessingInterceptor}s without a specified key.
 * The default key is derived from the interceptor class name and hash code.
 * @param interceptors one or more interceptors to register
 *///  w  w  w.  ja v a 2  s .  c  o  m
public void registerDeferredResultInterceptors(DeferredResultProcessingInterceptor... interceptors) {
    Assert.notNull(interceptors, "A DeferredResultProcessingInterceptor is required");
    for (DeferredResultProcessingInterceptor interceptor : interceptors) {
        String key = interceptor.getClass().getName() + ":" + interceptor.hashCode();
        this.deferredResultInterceptors.put(key, interceptor);
    }
}