public EvictionAttributesImpl setAction(EvictionAction action) {
    if (action != null) {
      this.action = action;
    } else {
      this.action = EvictionAction.NONE;
    }
    return this;
  }
Sets the {@link EvictionAction} on the {@link EvictionAttributesImpl} that the given
{@link EvictionAlgorithm} uses to perform the eviction.

@param action the {@link EvictionAction} used by the {@link EvictionAction}
@return the instance of {@link EvictionAttributesMutator} on which this method was called
geode-core/src/main/java/org/apache/geode/internal/cache/EvictionAttributesImpl.java