class HeartbeatPublisher implements Publisher<PlatformOutboundInstruction> {

    public void publish(PlatformOutboundInstruction heartbeat) {
        for (ClientStreamIdentification client : clientsSupportingHeartbeat) {
            try {
                clientPublisher.publish(client.getClientStreamId(), heartbeat);
            } catch (RuntimeException ignore) {
                // failing to send heartbeat can be ignored
            }
        }
    }

    @Autowired public  HeartbeatPublisher(HeartbeatProvidedClients clients,
                              PlatformService platformService);
    public  HeartbeatPublisher(ClientIdentifications clientsSupportingHeartbeat,
                              ClientPublisher clientPublisher);

}