private ExpirationAttributes parseExpirationAttributes(RegionFunctionArgs.ExpirationAttrs newExpirationAttrs,ExpirationAttributes oldExpirationAttributes){
  ExpirationAction action=oldExpirationAttributes.getAction();
  int timeout=oldExpirationAttributes.getTimeout();
  if (newExpirationAttrs.getTime() != null) {
    timeout=newExpirationAttrs.getTime();
  }
  if (newExpirationAttrs.getAction() != null) {
    action=newExpirationAttrs.getAction();
  }
  return new ExpirationAttributes(timeout,action);
}

private ExpirationAttributes parseExpirationAttributes ( RegionFunctionArgs . ExpirationAttrs newExpirationAttrs , ExpirationAttributes oldExpirationAttributes ) { ExpirationAction action = oldExpirationAttributes . getAction ( ) ; int timeout = oldExpirationAttributes . getTimeout ( ) ; if ( newExpirationAttrs . getTime ( ) != null ) { timeout = newExpirationAttrs . getTime ( ) ; } if ( newExpirationAttrs . getAction ( ) != null ) { action = newExpirationAttrs . getAction ( ) ; } return new ExpirationAttributes ( timeout , action ) ; }
converts the expiration attributes passed as arguments from the command to the function into a type suitable for applying to a region .
