Alachisoft.NCache.Common.Enum.CacheStatusOnServerContainer Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Alachisoft.NCache.Common.Enum;
import com.alachisoft.ncache.serialization.core.io.InternalCompactSerializable;
import com.alachisoft.ncache.serialization.standard.io.CompactReader;
import com.alachisoft.ncache.serialization.standard.io.CompactWriter;
import java.io.IOException;
/**
* @author Muneeb Shahid
*/
public class CacheStatusOnServerContainer implements InternalCompactSerializable {
public CacheStatusOnServer cacheStatus;
@Override
public void Deserialize(CompactReader reader) throws IOException, ClassNotFoundException {
this.cacheStatus = CacheStatusOnServer.forValue(reader.ReadInt32());
}
@Override
public void Serialize(CompactWriter writer) throws IOException {
writer.Write(this.cacheStatus.getValue());
}
}