public class AsyncSSLDelegate extends Object implements Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this stream and releases any system resources associated
with it.
|
void |
lowerRead(ByteBuffer buffer)
Asynchronous read input.
|
void |
setAsyncCallbacks(Consumer<ByteBuffer> asyncReceiver,
Consumer<Throwable> errorReceiver) |
void |
startReading() |
void |
upperRead() |
void |
write(ByteBuffer buf) |
void |
write(ByteBuffer[] src)
Put buffers to appOutputQ, and call upperWrite() if q was empty.
|
public void write(ByteBuffer[] src) throws IOException
src
- IOException
public void write(ByteBuffer buf) throws IOException
IOException
public void close()
Closeable
As noted in AutoCloseable.close()
, cases where the
close may fail require careful attention. It is strongly advised
to relinquish the underlying resources and to internally
mark the Closeable
as closed, prior to throwing
the IOException
.
close
in interface AutoCloseable
close
in interface Closeable
public void setAsyncCallbacks(Consumer<ByteBuffer> asyncReceiver, Consumer<Throwable> errorReceiver)
public void startReading()
public void lowerRead(ByteBuffer buffer)
public void upperRead()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-06-25-232344.buildd.src