Class CoreContext

    • Constructor Detail

      • CoreContext

        public CoreContext​(CoreEnvironment environment,
                           com.lmax.disruptor.RingBuffer<ResponseEvent> responseRingBuffer)
        Creates a new CoreContext with no core id.
        Parameters:
        environment - the environment to share.
        responseRingBuffer - the response ring buffer to share.
      • CoreContext

        public CoreContext​(CoreEnvironment environment,
                           com.lmax.disruptor.RingBuffer<ResponseEvent> responseRingBuffer,
                           long coreId)
        Creates a new CoreContext with no a core id.
        Parameters:
        environment - the environment to share.
        responseRingBuffer - the response ring buffer to share.
        coreId - the core id to use.
    • Method Detail

      • environment

        public CoreEnvironment environment()
        Returns the current environment.
      • responseRingBuffer

        public com.lmax.disruptor.RingBuffer<ResponseEvent> responseRingBuffer()
        Returns the response ring buffer.
      • coreId

        public long coreId()
        The core it, 0 if not set.