|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.io.AsynchronousStreamCopyManager
public class AsynchronousStreamCopyManager
A manager for stream copies where the input and output streams may be provided at different times in different threads. Keeps track of input/output pairs via a magic cookie; sources of these then report in with the actual input or output and the cookie when they are ready for actual byte copying. When both an input and output are available, the copy thread copies the actual bytes.
| Constructor Summary | |
|---|---|
AsynchronousStreamCopyManager()
|
|
| Method Summary | |
|---|---|
void |
copyReady(AsynchronousStreamCopy copy)
Notify the manager that an AsynchronousStreamCopy has both input and output streams and is therefore ready to go. |
AsynchronousStreamCopy |
registerStreamCopy(java.lang.String description,
long byteCount,
long checksum)
Register for an AsynchronousStreamCopy. |
void |
sync()
Blocks until all copies are resolved. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsynchronousStreamCopyManager()
| Method Detail |
|---|
public AsynchronousStreamCopy registerStreamCopy(java.lang.String description,
long byteCount,
long checksum)
public void copyReady(AsynchronousStreamCopy copy)
public void sync()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||