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

Alachisoft.NCache.Common.DataStructures.ReplicatorStatusInfo Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
package Alachisoft.NCache.Common.DataStructures;

import com.alachisoft.ncache.serialization.core.io.ICompactSerializable;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectInput;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectOutput;

import java.io.IOException;

/**
 * Represents the actual status of the Replicator.
 */
public class ReplicatorStatusInfo implements ICompactSerializable {

    private boolean _isConnected;
    private boolean _isActive;

    public final boolean getIsConnected() {
        return _isConnected;
    }

    public final void setIsConnected(boolean value) {
        _isConnected = value;
    }

    public final boolean getIsActive() {
        return _isActive;
    }

    public final void setIsActive(boolean value) {
        _isActive = value;
    }

    @Override
    public void deserialize(NCacheObjectInput reader) throws IOException, ClassNotFoundException {
        _isConnected = reader.readBoolean();
        _isActive = reader.readBoolean();
    }

    @Override
    public void serialize(NCacheObjectOutput writer) throws IOException {
        writer.writeBoolean(_isConnected);
        writer.writeBoolean(_isActive);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy