I emit an error message and replace the return value with 0, instead (remember: every inline code block returns an object).
我发出错误信息,将返回值替换为0(请记住:每个内联代码块都返回一个对象)。
A process that calls this method on an object implementing the ChannelInput interface will block until an object is actually written on the channel by a process at the other end of the channel.
如果进程调用一个实现ChannelInput接口的对象的这个方法,那么进程会阻塞,直到在通道另一端的进程实际向通道写入了一个对象。
The finally block ensures that the object is returned to the pool even if an exception occurs.
Finally块确保了即使发生异常,也会将对象返回到池中。
应用推荐