@Target(value=METHOD) @Retention(value=RUNTIME) public @interface SpaceLeaseExpiration
class MyPojo{
private long lease;
@SpaceLeaseExpiration
public long getLease(){
return lease;
}
public void setLease(long lease){
this.lease = lease;
}
}
Notice: The property value is ignored when set before a space operation, e.g. IPojoSpace.write(Object, net.jini.core.transaction.Transaction, long)
.
The value is only honored when set on External Data Source read, e.g. DataProvider.iterator(Object)
.Copyright © GigaSpaces.