完成此任务后,我们将设置在队列管理器控制下开始和结束的发布/订阅代理。
Once that is done, we will set up the publish/subscribe broker to start and end under control of the queue manager.
当线程在CPU上的时间片结束之后,它将被重新放回到这个队列中。
When the thread completes its running slice on the CPU, it gets put back on the queue.
在事务级别,您可以跟踪消息何时从输入源中的队列离开,以及消息事务何时结束。
At transaction level you can track when the message is being dequeued from the input source and when the message transaction ends.
示例最后关闭队列句柄并从队列管理器断开,从而结束。
The example ends by closing the queue handle and disconnecting from the queue manager.
调用cancel_work_sync将会终止队列中的任务或者阻塞任务直到回调结束(如果处理程序已经在处理该任务)。
A call to cancel_work_sync will terminate the work in the queue or block until the callback has finished (if the work is already in progress in the handler).
在Server1的另一个窗口中,使用- is选项结束队列管理器,这样它将切换到备用队列管理器。
In another window on Server 1, end the queue manager with the -is option so that it will switch over to a standby queue manager.
如果时间差是负数,可以视为一个错误,因为永远不会在延迟时间结束后,在一个更早的触发时间从队列中取得项。
If the delta is ever negative, consider that an error, as you should never get an item from the queue with an earlier trigger time, when the delay has ended.
假设有100个工作单元在队列中并且还未执行,线程池中的线程将将会一直等到所有的工作都结束,并且他们也收到了关闭标志后才会结束。
For the sake of argument, assume there are 100 work units queued and pending. Threads in the thread pool will not die until all work is extinguished and they have received the shutdown flag.
假设有100个工作单元在队列中并且还未执行,线程池中的线程将将会一直等到所有的工作都结束,并且他们也收到了关闭标志后才会结束。
For the sake of argument, assume there are 100 work units queued and pending. Threads in the thread pool will not die until all work is extinguished and they have received the shutdown flag.
应用推荐