public interface RemotingConnection extends BufferHandler
Modifier and Type | Method and Description |
---|---|
void |
addCloseListener(CloseListener listener)
add a CloseListener.
|
void |
addFailureListener(FailureListener listener)
add a failure listener.
|
boolean |
checkDataReceived()
returns true if any data has been received since the last time this method was called.
|
HornetQBuffer |
createBuffer(int size)
creates a new HornetQBuffer of the specified size.
|
void |
destroy()
destroys this connection.
|
void |
disconnect(boolean criticalError)
Disconnect the connection, closing all channels
|
void |
fail(HornetQException me)
called when the underlying connection fails.
|
void |
flush()
flush all outstanding data from the connection.
|
long |
getCreationTime()
Returns the creation time of the
RemotingConnection . |
List<FailureListener> |
getFailureListeners()
return all the failure listeners
|
Object |
getID()
Returns the unique id of the
RemotingConnection . |
String |
getRemoteAddress()
returns a string representation of the remote address of this connection
|
Connection |
getTransportConnection()
return the underlying Connection.
|
boolean |
isClient()
Returns whether or not the
RemotingConnection is a client |
boolean |
isDestroyed()
Returns true if this
RemotingConnection has been destroyed. |
boolean |
removeCloseListener(CloseListener listener)
remove a Close Listener
|
List<CloseListener> |
removeCloseListeners() |
boolean |
removeFailureListener(FailureListener listener)
remove the failure listener
|
List<FailureListener> |
removeFailureListeners() |
void |
setCloseListeners(List<CloseListener> listeners) |
void |
setFailureListeners(List<FailureListener> listeners)
set the failure listeners.
|
bufferReceived
Object getID()
RemotingConnection
.long getCreationTime()
RemotingConnection
.String getRemoteAddress()
void addFailureListener(FailureListener listener)
listener
- the listenerboolean removeFailureListener(FailureListener listener)
listener
- the lister to removevoid addCloseListener(CloseListener listener)
listener
- the listener to addboolean removeCloseListener(CloseListener listener)
listener
- the listener to removeList<CloseListener> removeCloseListeners()
void setCloseListeners(List<CloseListener> listeners)
List<FailureListener> getFailureListeners()
List<FailureListener> removeFailureListeners()
void setFailureListeners(List<FailureListener> listeners)
listeners
- the listeners to add.HornetQBuffer createBuffer(int size)
size
- the size of buffer requiredvoid fail(HornetQException me)
me
- the exception that caused the failurevoid destroy()
Connection getTransportConnection()
boolean isClient()
RemotingConnection
is a clientboolean isDestroyed()
RemotingConnection
has been destroyed.void disconnect(boolean criticalError)
boolean checkDataReceived()
void flush()
Copyright © 2018 JBoss by Red Hat. All rights reserved.