Package io.reactivex.netty.contexts

Examples of io.reactivex.netty.contexts.RequestIdGenerator


    HandlerHolder(boolean server, final String reqId) {
        String headerName = "requestId";
        correlator = new ThreadLocalRequestCorrelator();
        requestId = reqId;
        RequestIdGenerator generator = new RequestIdGenerator() {
            @Override
            public String newRequestId(ContextKeySupplier keySupplier, AttributeMap channelAttributeMap) {
                return requestId;
            }
        };
View Full Code Here


        this.requestCorrelator = requestCorrelator;
        this.requestIdHeaderName = requestIdHeaderName;
    }

    public HttpRequestIdProvider(String requestIdHeaderName, RequestCorrelator requestCorrelator) {
        this(new RequestIdGenerator() {
            @Override
            public String newRequestId(ContextKeySupplier keySupplier, AttributeMap channelAttributeMap) {
                return UUID.randomUUID().toString();
            }
        }, requestCorrelator, requestIdHeaderName);
View Full Code Here

TOP

Related Classes of io.reactivex.netty.contexts.RequestIdGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.