Package com.swiftmq.net.client
Class IntraVMConnection
- java.lang.Object
-
- com.swiftmq.net.client.IntraVMConnection
-
- All Implemented Interfaces:
Connection,ChunkListener
public class IntraVMConnection extends java.lang.Object implements Connection, ChunkListener
-
-
Constructor Summary
Constructors Constructor Description IntraVMConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchunkCompleted(byte[] b, int offset, int len)Called from a ProtocolInputHandler when a protocol-chunk has been completed.voidclose()java.lang.StringgetHostname()java.lang.StringgetLocalHostname()java.io.OutputStreamgetOutputStream()intgetPort()booleanisClosed()voidserverClose()voidsetEndpoint(IntraVMServerEndpoint endpoint)voidsetExceptionHandler(ExceptionHandler exceptionHandler)voidsetInboundHandler(InboundHandler inboundHandler)voidsetInputActiveIndicator(java.util.concurrent.atomic.AtomicBoolean inputActiveIndicator)voidstart()
-
-
-
Method Detail
-
setEndpoint
public void setEndpoint(IntraVMServerEndpoint endpoint)
-
setInputActiveIndicator
public void setInputActiveIndicator(java.util.concurrent.atomic.AtomicBoolean inputActiveIndicator)
- Specified by:
setInputActiveIndicatorin interfaceConnection
-
chunkCompleted
public void chunkCompleted(byte[] b, int offset, int len)Description copied from interface:ChunkListenerCalled from a ProtocolInputHandler when a protocol-chunk has been completed.- Specified by:
chunkCompletedin interfaceChunkListener- Parameters:
b- byte array.offset- offsetlen- length
-
setInboundHandler
public void setInboundHandler(InboundHandler inboundHandler)
- Specified by:
setInboundHandlerin interfaceConnection
-
setExceptionHandler
public void setExceptionHandler(ExceptionHandler exceptionHandler)
- Specified by:
setExceptionHandlerin interfaceConnection
-
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceConnection
-
getLocalHostname
public java.lang.String getLocalHostname()
- Specified by:
getLocalHostnamein interfaceConnection
-
getHostname
public java.lang.String getHostname()
- Specified by:
getHostnamein interfaceConnection
-
getPort
public int getPort()
- Specified by:
getPortin interfaceConnection
-
start
public void start()
- Specified by:
startin interfaceConnection
-
isClosed
public boolean isClosed()
-
serverClose
public void serverClose()
-
close
public void close()
- Specified by:
closein interfaceConnection
-
-