Top Description Fields Constructors Methods
org.apache.sshd.common.util.closeable

public Class ParallelCloseable

extends SimpleCloseable
Class Inheritance
Imports
java.util.Collections, java.util.concurrent.atomic.AtomicInteger, org.apache.sshd.common.Closeable, org.apache.sshd.common.future.CloseFuture, .SshFutureListener

Waits for a group of Closeables to complete in any order, then signals the completion by setting the "parent" future as closed
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final Iterable<? extends Closeable>
Inherited from org.apache.sshd.common.util.closeable.SimpleCloseable:
closingfuture

Constructor Summary

AccessConstructor and Description
public
ParallelCloseable(Object id, Object lock, Iterable<? extends Closeable> closeables)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from org.apache.sshd.common.util.closeable.SimpleCloseable:
addCloseFutureListenercloseisClosedisClosingremoveCloseFutureListenertoString

Field Detail

closeablesback to summary
private final Iterable<? extends Closeable> closeables

Constructor Detail

ParallelCloseableback to summary
public ParallelCloseable(Object id, Object lock, Iterable<? extends Closeable> closeables)

Method Detail

doCloseback to summary
protected void doClose(boolean immediately)

Overrides org.apache.sshd.common.util.closeable.SimpleCloseable.doClose.

Annotations
@Override