Toggle navigation
Home
boolean to org.apache.ignite.internal.processors.cache.GridCacheReturn
No. of Instances - 6
No. of Commits - 1
No. of Projects - {'ignite'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Cascading Type Change (Different)
SyncOp<Boolean>
to
SyncOp<GridCacheReturn>
Update Anonymous class
{ @Override public Boolean op( IgniteTxLocalAdapter tx) throws IgniteCheckedException { if (ctx.deploymentEnabled()) ctx.deploy().registerClass(oldVal); return tx.putAllAsync(ctx,F.t(key,newVal),false,null,-1,ctx.equalsValArray(oldVal)).get().success(); } @Override public String toString(){ return "replace [key=" + key + ", oldVal="+ oldVal+ ", newVal="+ newVal+ ']'; } }
to
{ @Override public GridCacheReturn op( IgniteTxLocalAdapter tx) throws IgniteCheckedException { if (ctx.deploymentEnabled()) ctx.deploy().registerClass(oldVal); return (GridCacheReturn)tx.putAllAsync(ctx,F.t(key,newVal),true,null,-1,ctx.equalsValArray(oldVal)).get(); } @Override public String toString(){ return "replace [key=" + key + ", oldVal="+ oldVal+ ", newVal="+ newVal+ ']'; } }