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 Remoting connection
|
List<FailureListener> |
getFailureListeners()
return all the failure listeners
|
Object |
getID()
returns the unique id of the Remoting Connection
|
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 Remoting Connection is a client
|
boolean |
isDestroyed()
returns true if this Remoting Connection 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()
long getCreationTime()
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()
boolean isDestroyed()
void disconnect(boolean criticalError)
boolean checkDataReceived()
void flush()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.