@Override
  public void toData(DataOutput out) throws IOException {
    out.writeInt(maximum);
    DataSerializer.writeObject(action, out);
    DataSerializer.writeObject(algorithm, out);
  }
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