com.alachisoft.ncache.client.internal.communication.DistributedPropertyCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ncache-professional-client Show documentation
Show all versions of ncache-professional-client Show documentation
NCache Professional client for java.
package com.alachisoft.ncache.client.internal.communication;
import Alachisoft.NCache.Common.Communication.IChannelFormatter;
import Alachisoft.NCache.Common.Extensibility.Client.RPC.IRPCPropertyCall;
import Alachisoft.NCache.Common.Extensibility.Client.RPC.RPCCallInfo;
import Alachisoft.NCache.Common.Extensibility.Client.RPC.TargetType;
class DistributedPropertyCall extends DistributedRPCCallBase implements IRPCPropertyCall {
public boolean isSetterCall;
public String property;
public Object value;
public DistributedPropertyCall(RPCTransport tranmport, IChannelFormatter formatter) {
super(tranmport, formatter);
}
@Override
public boolean getIsSetterCall() {
return isSetterCall;
}
@Override
public void setIsSetterCall(boolean setterCall) {
isSetterCall = setterCall;
}
@Override
public String getProperty() {
return property;
}
@Override
public void setProperty(String property) {
this.property = property;
}
@Override
public Object getValue() {
return value;
}
@Override
public void setValue(Object value) {
this.value = value;
}
public RPCCallInfo CreateRPCCallInfo() {
TargetType targetType = isSetterCall ? TargetType.PropertySetter : TargetType.PropertyGetter;
RPCCallInfo tempVar = new RPCCallInfo();
tempVar.setTarget(property);
tempVar.setTargetType(targetType);
tempVar.setObjectUID(objectUID);
return tempVar;
}
}