接口 PollableChannel

    • 方法详细资料

      • receive

        Message<?> receive()
        Receive a message from this channel, blocking indefinitely if necessary.
        返回:
        the next available Message or null if interrupted
      • receive

        Message<?> receive​(long timeout)
        Receive a message from this channel, blocking until either a message is available or the specified timeout period elapses.
        参数:
        timeout - the timeout in milliseconds or MessageChannel.INDEFINITE_TIMEOUT.
        返回:
        the next available Message or null if the specified timeout period elapses or the message reception is interrupted