Package net.bluemind.lib.vertx
Class ContextNetSocket
java.lang.Object
net.bluemind.lib.vertx.ContextNetSocket
- All Implemented Interfaces:
io.vertx.core.net.NetSocket
,io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
,io.vertx.core.streams.StreamBase
,io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
Constructor Summary
ConstructorDescriptionContextNetSocket
(io.vertx.core.Context context, io.vertx.core.net.NetSocket ns) -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.Future
<Void> close()
void
io.vertx.core.net.NetSocket
closeHandler
(io.vertx.core.Handler<Void> handler) io.vertx.core.net.NetSocket
drainHandler
(io.vertx.core.Handler<Void> handler) io.vertx.core.Future
<Void> end()
void
io.vertx.core.net.NetSocket
endHandler
(io.vertx.core.Handler<Void> endHandler) io.vertx.core.net.NetSocket
exceptionHandler
(io.vertx.core.Handler<Throwable> handler) io.vertx.core.net.NetSocket
fetch
(long amount) io.vertx.core.net.NetSocket
handler
(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) boolean
isSsl()
io.vertx.core.net.SocketAddress
io.vertx.core.net.SocketAddress
localAddress
(boolean real) io.vertx.core.net.NetSocket
pause()
io.vertx.core.net.SocketAddress
io.vertx.core.net.SocketAddress
remoteAddress
(boolean real) io.vertx.core.net.NetSocket
resume()
io.vertx.core.Future
<Void> io.vertx.core.net.NetSocket
sendFile
(String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) io.vertx.core.net.NetSocket
setWriteQueueMaxSize
(int maxSize) io.vertx.core.Future
<Void> io.vertx.core.net.NetSocket
upgradeToSsl
(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) io.vertx.core.Future
<Void> upgradeToSsl
(String serverName) io.vertx.core.net.NetSocket
upgradeToSsl
(String serverName, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) io.vertx.core.Future
<Void> write
(io.vertx.core.buffer.Buffer data) void
write
(io.vertx.core.buffer.Buffer message, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) io.vertx.core.Future
<Void> void
io.vertx.core.Future
<Void> void
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vertx.core.net.NetSocket
sendFile, sendFile, sendFile, sendFile
Methods inherited from interface io.vertx.core.streams.ReadStream
pipe, pipeTo, pipeTo
Methods inherited from interface io.vertx.core.streams.WriteStream
end, end
-
Constructor Details
-
ContextNetSocket
public ContextNetSocket(io.vertx.core.Context context, io.vertx.core.net.NetSocket ns)
-
-
Method Details
-
write
- Specified by:
write
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
writeQueueFull
public boolean writeQueueFull()- Specified by:
writeQueueFull
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
exceptionHandler
- Specified by:
exceptionHandler
in interfaceio.vertx.core.net.NetSocket
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.StreamBase
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
handler
public io.vertx.core.net.NetSocket handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) - Specified by:
handler
in interfaceio.vertx.core.net.NetSocket
- Specified by:
handler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
pause
public io.vertx.core.net.NetSocket pause()- Specified by:
pause
in interfaceio.vertx.core.net.NetSocket
- Specified by:
pause
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
resume
public io.vertx.core.net.NetSocket resume()- Specified by:
resume
in interfaceio.vertx.core.net.NetSocket
- Specified by:
resume
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
fetch
public io.vertx.core.net.NetSocket fetch(long amount) - Specified by:
fetch
in interfaceio.vertx.core.net.NetSocket
- Specified by:
fetch
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
endHandler
- Specified by:
endHandler
in interfaceio.vertx.core.net.NetSocket
- Specified by:
endHandler
in interfaceio.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
-
setWriteQueueMaxSize
public io.vertx.core.net.NetSocket setWriteQueueMaxSize(int maxSize) - Specified by:
setWriteQueueMaxSize
in interfaceio.vertx.core.net.NetSocket
- Specified by:
setWriteQueueMaxSize
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
drainHandler
- Specified by:
drainHandler
in interfaceio.vertx.core.net.NetSocket
- Specified by:
drainHandler
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
writeHandlerID
- Specified by:
writeHandlerID
in interfaceio.vertx.core.net.NetSocket
-
write
- Specified by:
write
in interfaceio.vertx.core.net.NetSocket
-
write
- Specified by:
write
in interfaceio.vertx.core.net.NetSocket
-
write
public void write(String str, String enc, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
write
in interfaceio.vertx.core.net.NetSocket
-
write
- Specified by:
write
in interfaceio.vertx.core.net.NetSocket
-
write
public void write(io.vertx.core.buffer.Buffer message, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
write
in interfaceio.vertx.core.net.NetSocket
- Specified by:
write
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
sendFile
- Specified by:
sendFile
in interfaceio.vertx.core.net.NetSocket
-
sendFile
public io.vertx.core.net.NetSocket sendFile(String filename, long offset, long length, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) - Specified by:
sendFile
in interfaceio.vertx.core.net.NetSocket
-
remoteAddress
public io.vertx.core.net.SocketAddress remoteAddress()- Specified by:
remoteAddress
in interfaceio.vertx.core.net.NetSocket
-
remoteAddress
public io.vertx.core.net.SocketAddress remoteAddress(boolean real) - Specified by:
remoteAddress
in interfaceio.vertx.core.net.NetSocket
-
localAddress
public io.vertx.core.net.SocketAddress localAddress()- Specified by:
localAddress
in interfaceio.vertx.core.net.NetSocket
-
localAddress
public io.vertx.core.net.SocketAddress localAddress(boolean real) - Specified by:
localAddress
in interfaceio.vertx.core.net.NetSocket
-
end
- Specified by:
end
in interfaceio.vertx.core.net.NetSocket
- Specified by:
end
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
end
- Specified by:
end
in interfaceio.vertx.core.net.NetSocket
- Specified by:
end
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
close
- Specified by:
close
in interfaceio.vertx.core.net.NetSocket
-
close
- Specified by:
close
in interfaceio.vertx.core.net.NetSocket
-
closeHandler
- Specified by:
closeHandler
in interfaceio.vertx.core.net.NetSocket
-
upgradeToSsl
public io.vertx.core.net.NetSocket upgradeToSsl(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
upgradeToSsl
in interfaceio.vertx.core.net.NetSocket
-
upgradeToSsl
- Specified by:
upgradeToSsl
in interfaceio.vertx.core.net.NetSocket
-
upgradeToSsl
public io.vertx.core.net.NetSocket upgradeToSsl(String serverName, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
upgradeToSsl
in interfaceio.vertx.core.net.NetSocket
-
upgradeToSsl
- Specified by:
upgradeToSsl
in interfaceio.vertx.core.net.NetSocket
-
isSsl
public boolean isSsl()- Specified by:
isSsl
in interfaceio.vertx.core.net.NetSocket
-
sslSession
- Specified by:
sslSession
in interfaceio.vertx.core.net.NetSocket
-
peerCertificateChain
- Specified by:
peerCertificateChain
in interfaceio.vertx.core.net.NetSocket
- Throws:
SSLPeerUnverifiedException
-
peerCertificates
- Specified by:
peerCertificates
in interfaceio.vertx.core.net.NetSocket
- Throws:
SSLPeerUnverifiedException
-
indicatedServerName
- Specified by:
indicatedServerName
in interfaceio.vertx.core.net.NetSocket
-
applicationLayerProtocol
- Specified by:
applicationLayerProtocol
in interfaceio.vertx.core.net.NetSocket
-