Class ClusterConnection

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ClusterConnection
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Author:
    Einar M R Rosenvinge
    • Constructor Detail

      • ClusterConnection

        public ClusterConnection​(OperationProcessor operationProcessor,
                                 FeedParams feedParams,
                                 ConnectionParams connectionParams,
                                 Cluster cluster,
                                 int clusterId,
                                 int clientQueueSizePerCluster,
                                 java.util.concurrent.ScheduledThreadPoolExecutor timeoutExecutor,
                                 java.time.Clock clock)
    • Method Detail

      • getClusterId

        public int getClusterId()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • getStatsAsJSon

        public java.lang.String getStatsAsJSon()
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • ioThreads

        public java.util.List<IOThread> ioThreads()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object