Package com.swiftmq.net.client
Class IntraVMConnection
java.lang.Object
com.swiftmq.net.client.IntraVMConnection
- All Implemented Interfaces:
Connection
,ChunkListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
chunkCompleted
(byte[] b, int offset, int len) Called from a ProtocolInputHandler when a protocol-chunk has been completed.void
close()
int
getPort()
boolean
isClosed()
void
void
setEndpoint
(IntraVMServerEndpoint endpoint) void
setExceptionHandler
(ExceptionHandler exceptionHandler) void
setInboundHandler
(InboundHandler inboundHandler) void
setInputActiveIndicator
(AtomicBoolean inputActiveIndicator) void
start()
-
Constructor Details
-
IntraVMConnection
public IntraVMConnection()
-
-
Method Details
-
setEndpoint
-
setInputActiveIndicator
- 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
- Specified by:
setInboundHandler
in interfaceConnection
-
setExceptionHandler
- Specified by:
setExceptionHandler
in interfaceConnection
-
getOutputStream
- Specified by:
getOutputStream
in interfaceConnection
-
getLocalHostname
- Specified by:
getLocalHostname
in interfaceConnection
-
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
-