@Override
  public void toData(DataOutput out,
      SerializationContext context) throws IOException {
    InternalDataSerializer.invokeToData(memberID, out);
    InternalDataSerializer.writeSetOfLongs(allKeyClients.getSnapshot(),
        clientMap.hasLongID, out);
    DataSerializer.writeHashMap(keysOfInterest.getSnapshot(), out);
    DataSerializer.writeHashMap(patternsOfInterest.getSnapshot(), out);
    DataSerializer.writeHashMap(filtersOfInterest.getSnapshot(), out);

    InternalDataSerializer.writeSetOfLongs(allKeyClientsInv.getSnapshot(),
        clientMap.hasLongID, out);
    DataSerializer.writeHashMap(keysOfInterestInv.getSnapshot(), out);
    DataSerializer.writeHashMap(patternsOfInterestInv.getSnapshot(), out);
    DataSerializer.writeHashMap(filtersOfInterestInv.getSnapshot(), out);

    // Write CQ info.
    Map<String, ServerCQ> theCQs = cqs.getSnapshot();
    int size = theCQs.size();
    InternalDataSerializer.writeArrayLength(size, out);
    for (Map.Entry<String, ServerCQ> entry : theCQs.entrySet()) {
      String name = entry.getKey();
      ServerCQ cq = entry.getValue();
      DataSerializer.writeString(name, out);
      InternalDataSerializer.invokeToData(cq, out);
    }
  }
get the clients interested in the given event that are attached to this server.

@param event the entry event being applied to the cache
@param akc allKeyClients collection
@param koi keysOfInterest collection
@param pats patternsOfInterest collection
@param foi filtersOfInterest collection
@return a set of the clients interested in the event
geode-core/src/main/java/org/apache/geode/internal/cache/FilterProfile.java