public static class BlockingWriteCallback.WriteBlocker extends Object implements WriteCallback, Callback, AutoCloseable
Callback.Adapter
Modifier and Type | Method and Description |
---|---|
void |
block() |
void |
close() |
void |
failed(Throwable x)
Callback invoked when the operation fails.
|
void |
succeeded()
Callback invoked when the operation completes.
|
void |
writeFailed(Throwable x)
Callback invoked when the write fails.
|
void |
writeSuccess()
Callback invoked when the write completes.
|
public void writeFailed(Throwable x)
WriteCallback
Callback invoked when the write fails.
writeFailed
in interface WriteCallback
x
- the reason for the write failurepublic void writeSuccess()
WriteCallback
Callback invoked when the write completes.
writeSuccess
in interface WriteCallback
WriteCallback.writeFailed(Throwable)
public void succeeded()
Callback
Callback invoked when the operation completes.
succeeded
in interface Callback
Callback.failed(Throwable)
public void failed(Throwable x)
Callback
Callback invoked when the operation fails.
public void close() throws IOException
close
in interface AutoCloseable
IOException
public void block() throws IOException
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.