Class EConfigure.AbstractConfig

    • Field Detail

      • mName

        protected final String mName
        eBus local name.
      • mInputBufferSize

        protected final int mInputBufferSize
        Input buffer size.
      • mOutputBufferSize

        protected final int mOutputBufferSize
        Output buffer size.
      • mByteOrder

        protected final ByteOrder mByteOrder
        The input and output buffer use this byte ordering.
      • mMsgQueueSize

        protected final int mMsgQueueSize
        Maximum message queue size.
      • mHbDelay

        protected final Duration mHbDelay
        Send a heartbeat this many milliseconds after the last received input. A zero value means heartbeating is not performed.
      • mHbReplyDelay

        protected final Duration mHbReplyDelay
        Wait this many milliseconds for a heartbeat reply. This timer is reset when a non-heartbeat reply is received. A zero value means an indefinite reply time.
      • mCanPause

        protected final boolean mCanPause
        Set to true if accepted connections may be paused.
    • Constructor Detail

      • AbstractConfig

        protected AbstractConfig​(EConfigure.AbstractBuilder<?> builder)
        Constructs the common information for service and remote connections.
        Parameters:
        builder - connection builder.
    • Method Detail

      • name

        public final String name()
        Returns the remote connection unique name.
        Returns:
        the remote connection unique name.
      • connectionType

        public final EConfigure.ConnectionType connectionType()
        Returns the channel type. This is currently limited to plain text TCP and SSL/TLS secure TCP connections.
        Returns:
        connection type.
      • inputBufferSize

        public final int inputBufferSize()
        Returns the connection input buffer size.
        Returns:
        the connection input buffer size.
      • outputBufferSize

        public final int outputBufferSize()
        Returns the connection output buffer size.
        Returns:
        the connection output buffer size.
      • byteOrder

        public final ByteOrder byteOrder()
        Returns connection buffer byte ordering.
        Returns:
        the connection buffer byte ordering.
      • messageQueueSize

        public final int messageQueueSize()
        Returns the maximum number of messages on the output queue. Returns zero if there is no limit.
        Returns:
        the message queue maximum size.
      • heartbeatDelay

        public final Duration heartbeatDelay()
        Returns the heartbeat delay in milliseconds. A zero value means that heartbeating is not performed.
        Returns:
        the heartbeat delay in milliseconds.
      • heartbeatReplyDelay

        public final Duration heartbeatReplyDelay()
        Returns the heartbeat reply delay. A zero value means an indefinite delay.
        Returns:
        the heartbeat reply delay.
      • canPause

        public final boolean canPause()
        Returns true if pause requests are accepted and false if not.
        Returns:
        true if accepted connections may be paused.
      • pauseConfiguration

        public final EConfigure.PauseConfig pauseConfiguration()
        Returns the connection pause configuration. If canPause() returns false, then returns null.
        Returns:
        connection pause configuration.