@Override
  public void toData(DataOutput out,
      SerializationContext context) throws IOException {
    super.toData(out, context);
    out.writeInt(bucketId);
    InternalDataSerializer.invokeToData(newPrimary, out);
  }
Sends a message to make the recipient primary for the bucket.


@param newPrimary the member to to become primary
@param pr the PartitionedRegion of the bucket
@param bid the bucket to become primary for
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/EndBucketCreationMessage.java