Class SegmentBufferMonitor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DIRECT_BUFFER_CAPACITY
      Total capacity of the allocated direct byte buffers.
      static java.lang.String DIRECT_BUFFER_COUNT
      Number of allocated direct byte buffers
      static java.lang.String HEAP_BUFFER_CAPACITY
      Total capacity of the allocated heap byte buffers.
      static java.lang.String HEAP_BUFFER_COUNT
      Number of allocated heap byte buffers
    • Constructor Summary

      Constructors 
      Constructor Description
      SegmentBufferMonitor​(@NotNull StatisticsProvider statisticsProvider)
      Create a new instance using the passed statisticsProvider to expose buffer allocations.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void trackAllocation​(@NotNull Buffer buffer)
      Track the allocation of a buffer and update the exposed statistics.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DIRECT_BUFFER_COUNT

        public static final java.lang.String DIRECT_BUFFER_COUNT
        Number of allocated direct byte buffers
        See Also:
        Constant Field Values
      • DIRECT_BUFFER_CAPACITY

        public static final java.lang.String DIRECT_BUFFER_CAPACITY
        Total capacity of the allocated direct byte buffers.
        See Also:
        Constant Field Values
      • HEAP_BUFFER_COUNT

        public static final java.lang.String HEAP_BUFFER_COUNT
        Number of allocated heap byte buffers
        See Also:
        Constant Field Values
      • HEAP_BUFFER_CAPACITY

        public static final java.lang.String HEAP_BUFFER_CAPACITY
        Total capacity of the allocated heap byte buffers.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SegmentBufferMonitor

        public SegmentBufferMonitor​(@NotNull
                                    @NotNull StatisticsProvider statisticsProvider)
        Create a new instance using the passed statisticsProvider to expose buffer allocations.
        Parameters:
        statisticsProvider -
    • Method Detail

      • trackAllocation

        public void trackAllocation​(@NotNull
                                    @NotNull Buffer buffer)
        Track the allocation of a buffer and update the exposed statistics.
        Parameters:
        buffer -