Class ConsensusModuleProxy

java.lang.Object
io.aeron.cluster.service.ConsensusModuleProxy
All Implemented Interfaces:
AutoCloseable

public final class ConsensusModuleProxy extends Object implements AutoCloseable
Proxy for communicating with the Consensus Module over IPC.

Note: This class is not for public use.

  • Constructor Details

    • ConsensusModuleProxy

      public ConsensusModuleProxy(Publication publication)
      Construct a proxy to the consensus module that will send messages over a provided Publication.
      Parameters:
      publication - for sending messages to the consensus module.
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • clusterMembersQuery

      public boolean clusterMembersQuery(long correlationId)
      Query for the current cluster members.
      Parameters:
      correlationId - for the request.
      Returns:
      true of the request was successfully sent, otherwise false.