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 void
chunkCompleted(byte[] b, int offset, int len)
Called from a ProtocolInputHandler when a protocol-chunk has been completed.void
close()
java.lang.String
getHostname()
java.lang.String
getLocalHostname()
java.io.OutputStream
getOutputStream()
int
getPort()
boolean
isClosed()
void
serverClose()
void
setEndpoint(IntraVMServerEndpoint endpoint)
void
setExceptionHandler(ExceptionHandler exceptionHandler)
void
setInboundHandler(InboundHandler inboundHandler)
void
setInputActiveIndicator(java.util.concurrent.atomic.AtomicBoolean inputActiveIndicator)
void
start()
-
-
-
Method Detail
-
setEndpoint
public void setEndpoint(IntraVMServerEndpoint endpoint)
-
setInputActiveIndicator
public void setInputActiveIndicator(java.util.concurrent.atomic.AtomicBoolean inputActiveIndicator)
- Specified by:
setInputActiveIndicator
in interfaceConnection
-
chunkCompleted
public void chunkCompleted(byte[] b, int offset, int len)
Description copied from interface:ChunkListener
Called from a ProtocolInputHandler when a protocol-chunk has been completed.- Specified by:
chunkCompleted
in interfaceChunkListener
- Parameters:
b
- byte array.offset
- offsetlen
- length
-
setInboundHandler
public void setInboundHandler(InboundHandler inboundHandler)
- Specified by:
setInboundHandler
in interfaceConnection
-
setExceptionHandler
public void setExceptionHandler(ExceptionHandler exceptionHandler)
- Specified by:
setExceptionHandler
in interfaceConnection
-
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in interfaceConnection
-
getLocalHostname
public java.lang.String getLocalHostname()
- Specified by:
getLocalHostname
in interfaceConnection
-
getHostname
public java.lang.String getHostname()
- Specified by:
getHostname
in interfaceConnection
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceConnection
-
start
public void start()
- Specified by:
start
in interfaceConnection
-
isClosed
public boolean isClosed()
-
serverClose
public void serverClose()
-
close
public void close()
- Specified by:
close
in interfaceConnection
-
-