public class Timeout extends Object implements AutoCloseable
VirtualChannel.call(hudson.remoting.Callable<V, T>)
or FilePath.isDirectory()
could otherwise hang forever.
Use in a try
-with-resources block.Modifier and Type | Method and Description |
---|---|
void |
close() |
static Timeout |
limit(long time,
TimeUnit unit) |
public void close()
close
in interface AutoCloseable
Copyright © 2016–2017. All rights reserved.