com.fasterxml.clustermate.service.sync.SyncPullRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clustermate-service Show documentation
Show all versions of clustermate-service Show documentation
Building blocks for ClusterMate-based services and servers.
package com.fasterxml.clustermate.service.sync;
import java.util.*;
import com.fasterxml.clustermate.api.msg.ExtensibleType;
import com.fasterxml.storemate.shared.StorableKey;
/**
* Simple value class used for containing information for
* a "sync pull" operation.
*/
public class SyncPullRequest extends ExtensibleType
{
public List entries;
public SyncPullRequest() { }
public void addEntry(StorableKey key) {
if (entries == null) {
entries = new ArrayList();
}
entries.add(key);
}
public int size() {
return (entries == null) ? 0 : entries.size();
}
}