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

com.alachisoft.ncache.client.internal.communication.DistributedPropertyCall Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy