akka.io
Class SslTlsSupport
java.lang.Object
akka.io.PipelineStage<HasLogging,Tcp.Command,Tcp.Command,Tcp.Event,Tcp.Event>
akka.io.SslTlsSupport
public class SslTlsSupport
- extends PipelineStage<HasLogging,Tcp.Command,Tcp.Command,Tcp.Event,Tcp.Event>
This pipeline stage implements SSL / TLS support, using an externally
configured SSLEngine
. It operates on the level of Tcp.Event
and
Tcp.Command
messages, which means that it will typically be one of
the lowest stages in a protocol stack. Since SSLEngine relies on contiguous
transmission of a data stream you will need to handle backpressure from
the TCP connection actor, for example by using a BackpressureBuffer
underneath the SSL stage.
Each instance of this stage has a scratch ByteBuffer
of approx. 18kiB
allocated which is used by the SSLEngine.
Constructor Summary |
SslTlsSupport(javax.net.ssl.SSLEngine engine)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SslTlsSupport
public SslTlsSupport(javax.net.ssl.SSLEngine engine)
apply
public java.lang.Object apply(HasLogging ctx)