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

com.fasterxml.clustermate.service.sync.SyncPullRequest Maven / Gradle / Ivy

The newest version!
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();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy