All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.shedhack.thread.context.adapter.ListThreadContextAdapter Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package com.shedhack.thread.context.adapter;

import com.shedhack.thread.context.handler.ListThreadContextHandler;

import java.util.Arrays;
import java.util.Date;
import java.util.Map;

/**
 * Created by imamchishty on 15/03/2016.
 */
public class ListThreadContextAdapter implements ThreadContextAdapter {

    public ListThreadContextAdapter(ListThreadContextHandler handler) {
        this.handler = handler;
    }

    private ListThreadContextHandler handler;

    /**
     * {@inheritDoc}
     */
    public void setContext(String id, Date date, String method, Map context, Map params) {
        handler.setThreadContext(Arrays.asList(id, date.toString(),
                method, context.toString(), params.toString()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy