Class NettyHttpConnection
java.lang.Object
org.serviceconnector.net.req.netty.NettyConnectionAdpater
org.serviceconnector.net.req.netty.http.NettyHttpConnection
- All Implemented Interfaces:
IConnection
The Class NettyHttpClientConnection. Concrete connection implementation with JBoss Netty for Http.
- Author:
- JTraber
-
Field Summary
Fields inherited from class org.serviceconnector.net.req.netty.NettyConnectionAdpater
baseConf, bootstrap, channel, connectionContext, encoderDecoder, host, idleTimeout, operationListener, port, remotSocketAddress, workerGroup -
Constructor Summary
ConstructorsConstructorDescriptionNettyHttpConnection(io.netty.channel.EventLoopGroup workerGroup) Instantiates a new netty http connection. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Connect.voidsend(SCMPMessage scmp, ISCMPMessageCallback callback) Send and receive asynchronous operation.voidSets the quiet disconnect.Methods inherited from class org.serviceconnector.net.req.netty.NettyConnectionAdpater
destroy, disconnect, getContext, getHost, getNrOfIdlesInSequence, getPort, incrementNrOfIdles, isConnected, resetNrOfIdles, setContext, setHost, setIdleTimeoutSeconds, setPort
-
Constructor Details
-
NettyHttpConnection
public NettyHttpConnection(io.netty.channel.EventLoopGroup workerGroup) Instantiates a new netty http connection.- Parameters:
workerGroup- the worker group
-
-
Method Details
-
connect
Connect.- Specified by:
connectin interfaceIConnection- Specified by:
connectin classNettyConnectionAdpater- Throws:
Exception- the exception
-
send
Send and receive asynchronous operation.- Specified by:
sendin interfaceIConnection- Specified by:
sendin classNettyConnectionAdpater- Parameters:
scmp- the scmpcallback- the callback- Throws:
Exception- the exception
-
setQuietDisconnect
Description copied from interface:IConnectionSets the quiet disconnect. Disconnect is not logged or does not reply any answer to higher layer.- Throws:
Exception- the exception
-