Class SyncAsyncPostCommand<T>

    • Field Detail

      • message

        private T message
    • Constructor Detail

      • SyncAsyncPostCommand

        public SyncAsyncPostCommand​(MBassador<T> mBassador,
                                    T message)
    • Method Detail

      • asynchronously

        public IMessagePublication asynchronously()
        Description copied from interface: ISyncAsyncPublicationCommand
        Execute the message publication asynchronously. The behaviour of this method depends on the configured queuing strategy:

        If an unbound queuing strategy is used the call returns immediately. If a bounded queue is used the call might block until the message can be placed in the queue.

        Specified by:
        asynchronously in interface ISyncAsyncPublicationCommand
        Returns:
        A message publication that can be used to access information about the state of
      • asynchronously

        public IMessagePublication asynchronously​(long timeout,
                                                  java.util.concurrent.TimeUnit unit)
        Description copied from interface: ISyncAsyncPublicationCommand
        Execute the message publication asynchronously. The behaviour of this method depends on the configured queuing strategy:

        If an unbound queuing strategy is used the call returns immediately. If a bounded queue is used the call will block until the message can be placed in the queue or the timeout is reached.

        Specified by:
        asynchronously in interface ISyncAsyncPublicationCommand
        Returns:
        A message publication that wraps up the publication request