class RaftActorContextImpl implements RaftActorContext {

    @Override
    public void setPeerAddress(final String peerId, final String peerAddress) {
        PeerInfo peerInfo = peerInfoMap.get(peerId);
        if (peerInfo != null) {
            log.info("Peer address for peer {} set to {}", peerId, peerAddress);
            peerInfo.setAddress(peerAddress);
        }
    }

    public  RaftActorContextImpl(final ActorRef actor, final ActorContext context, final String id,
            final @NonNull ElectionTerm termInformation, final long commitIndex, final long lastApplied,
            final @NonNull Map<String, String> peerAddresses,
            final @NonNull ConfigParams configParams, final @NonNull DataPersistenceProvider persistenceProvider,
            final @NonNull Consumer<ApplyState> applyStateConsumer, final @NonNull Logger logger,
            final @NonNull Executor executor);

}