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

com.fasterxml.clustermate.client.jdk.JdkHttpEntryAccessors Maven / Gradle / Ivy

Go to download

ClusterMate NetworkClient implementation built on default JDK-provided HTTP client (HTTPUrlConnection)

There is a newer version: 0.10.5
Show newest version
package com.fasterxml.clustermate.client.jdk;

import com.fasterxml.clustermate.api.EntryKey;
import com.fasterxml.clustermate.client.*;
import com.fasterxml.clustermate.client.call.*;

public class JdkHttpEntryAccessors implements EntryAccessors
{
    protected final StoreClientConfig _storeConfig;
    
    public JdkHttpEntryAccessors(StoreClientConfig storeConfig)
    {
        _storeConfig = storeConfig;
    }
    
    @Override
    public ContentPutter entryPutter(ClusterServerNode server) {
        return new JdkHttpContentPutter(_storeConfig, server);
    }

    @Override
    public ContentGetter entryGetter(ClusterServerNode server) {
        return new JdkHttpContentGetter(_storeConfig, server);
    }

    @Override
    public ContentHeader entryHeader(ClusterServerNode server) {
        return new JdkHttpContentHeader(_storeConfig, server);
    }

    @Override
    public ContentDeleter entryDeleter(ClusterServerNode server) {
        return new JdkHttpContentDeleter(_storeConfig, server);
    }

    @Override
    public EntryLister entryLister(ClusterServerNode server) {
        return new JdkHttpEntryLister(_storeConfig, server);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy