com.fasterxml.clustermate.client.jdk.JdkHttpEntryAccessors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clustermate-client-jdk Show documentation
Show all versions of clustermate-client-jdk Show documentation
ClusterMate NetworkClient implementation built on default
JDK-provided HTTP client (HTTPUrlConnection)
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