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;
protected final P _singleEntryEndpoint;
protected final P _entryListEndpoint;
public JdkHttpEntryAccessors(StoreClientConfig storeConfig,
P singleEndpoint, P listEndpoint)
{
_storeConfig = storeConfig;
_singleEntryEndpoint = singleEndpoint;
_entryListEndpoint = listEndpoint;
}
@Override
public ContentPutter entryPutter(ClusterServerNode server) {
return new JdkHttpContentPutter(_storeConfig, _singleEntryEndpoint, server);
}
@Override
public ContentGetter entryGetter(ClusterServerNode server) {
return new JdkHttpContentGetter(_storeConfig, _singleEntryEndpoint, server);
}
@Override
public ContentHeader entryHeader(ClusterServerNode server) {
return new JdkHttpContentHeader(_storeConfig, _singleEntryEndpoint, server);
}
@Override
public ContentDeleter entryDeleter(ClusterServerNode server) {
return new JdkHttpContentDeleter(_storeConfig, _singleEntryEndpoint, server);
}
@Override
public EntryLister entryLister(ClusterServerNode server) {
return new JdkHttpEntryLister(_storeConfig, _entryListEndpoint, server);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy