|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
The connection used by a channel to write data to.
Method Summary | |
---|---|
void |
addReadyListener(ReadyListener listener)
|
void |
checkFlushBatchBuffer()
Called periodically to flush any data in the batch buffer |
void |
close()
Closes the connection. |
org.hornetq.api.core.HornetQBuffer |
createBuffer(int size)
Create a new HornetQBuffer of the given size. |
TransportConfiguration |
getConnectorConfig()
Generates a TransportConfiguration to be used to connect to the same target this is
connected to. |
org.hornetq.core.security.HornetQPrincipal |
getDefaultHornetQPrincipal()
|
Object |
getID()
returns the unique id of this wire. |
String |
getRemoteAddress()
Returns a string representation of the remote address this connection is connected to. |
void |
removeReadyListener(ReadyListener listener)
|
void |
write(org.hornetq.api.core.HornetQBuffer buffer)
writes the buffer to the connection with no flushing or batching |
void |
write(org.hornetq.api.core.HornetQBuffer buffer,
boolean flush,
boolean batched)
writes the buffer to the connection and if flush is true returns only when the buffer has been physically written to the connection. |
Method Detail |
---|
org.hornetq.api.core.HornetQBuffer createBuffer(int size)
size
- the size of buffer to create
Object getID()
void write(org.hornetq.api.core.HornetQBuffer buffer, boolean flush, boolean batched)
buffer
- the buffer to writeflush
- whether to flush the buffers onto the wirebatched
- whether the packet is allowed to batched for better performancevoid write(org.hornetq.api.core.HornetQBuffer buffer)
buffer
- the buffer to writevoid close()
String getRemoteAddress()
void checkFlushBatchBuffer()
void addReadyListener(ReadyListener listener)
void removeReadyListener(ReadyListener listener)
TransportConfiguration getConnectorConfig()
TransportConfiguration
to be used to connect to the same target this is
connected to.
org.hornetq.core.security.HornetQPrincipal getDefaultHornetQPrincipal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |