public interface BlockingDisposable extends Disposable
Modifier and Type | Method and Description |
---|---|
default void |
close() |
default void |
dispose() |
default void |
dispose(long timeoutMillis) |
boolean |
tryDispose(long timeoutMillis) |
default void dispose() throws ObjectDisposeException, InterruptedException
dispose
in interface Disposable
ObjectDisposeException
InterruptedException
default void dispose(long timeoutMillis) throws ObjectDisposeException, InterruptedException, TimeoutException
default void close() throws ObjectDisposeException, InterruptedException
close
in interface AutoCloseable
close
in interface Disposable
ObjectDisposeException
InterruptedException
boolean tryDispose(long timeoutMillis) throws ObjectDisposeException, InterruptedException
Copyright © 2018 SPF4J. All rights reserved.