java.lang.AutoCloseable, org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable, WriteCallbackpublic static class BlockingWriteCallback.WriteBlocker extends java.lang.Object implements WriteCallback, org.eclipse.jetty.util.Callback, java.lang.AutoCloseable
| Modifier | Constructor | Description |
|---|---|---|
protected |
WriteBlocker(org.eclipse.jetty.util.SharedBlockingCallback.Blocker blocker) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
block() |
|
void |
close() |
|
void |
failed(java.lang.Throwable x) |
|
org.eclipse.jetty.util.thread.Invocable.InvocationType |
getInvocationType() |
|
void |
succeeded() |
|
void |
writeFailed(java.lang.Throwable x) |
Callback invoked when the write fails.
|
void |
writeSuccess() |
Callback invoked when the write completes.
|
protected WriteBlocker(org.eclipse.jetty.util.SharedBlockingCallback.Blocker blocker)
public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()
getInvocationType in interface org.eclipse.jetty.util.thread.Invocablepublic void writeFailed(java.lang.Throwable x)
WriteCallbackCallback invoked when the write fails.
writeFailed in interface WriteCallbackx - the reason for the write failurepublic void writeSuccess()
WriteCallbackCallback invoked when the write completes.
writeSuccess in interface WriteCallbackWriteCallback.writeFailed(Throwable)public void succeeded()
succeeded in interface org.eclipse.jetty.util.Callbackpublic void failed(java.lang.Throwable x)
failed in interface org.eclipse.jetty.util.Callbackpublic void close()
close in interface java.lang.AutoCloseablepublic void block()
throws java.io.IOException
java.io.IOExceptionCopyright © 1995–2019 Webtide. All rights reserved.