|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jms.client.delegate.DelegateSupport org.jboss.jms.client.delegate.ClientConnectionDelegate
public class ClientConnectionDelegate
The client-side Connection delegate class.
Field Summary |
---|
Fields inherited from class org.jboss.jms.client.delegate.DelegateSupport |
---|
client, id, state, version |
Constructor Summary | |
---|---|
ClientConnectionDelegate()
|
|
ClientConnectionDelegate(java.lang.String objectID,
int serverID)
|
Method Summary | |
---|---|
void |
close()
Close the instance |
long |
closing(long sequence)
Tell the instance to prepare to close |
JBossConnectionConsumer |
createConnectionConsumer(Destination dest,
java.lang.String subscriptionName,
java.lang.String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
This invocation should either be handled by the client-side interceptor chain or by the server-side endpoint. |
SessionDelegate |
createSessionDelegate(boolean transacted,
int acknowledgmentMode,
boolean isXA)
|
java.lang.String |
getClientID()
|
ConnectionMetaData |
getConnectionMetaData()
This invocation should either be handled by the client-side interceptor chain or by the server-side endpoint. |
ExceptionListener |
getExceptionListener()
This invocation should either be handled by the client-side interceptor chain or by the server-side endpoint. |
IDBlock |
getIdBlock(int size)
|
MessagingXid[] |
getPreparedTransactions()
|
JMSRemotingConnection |
getRemotingConnection()
|
int |
getServerID()
|
Version |
getVersionToUse()
|
void |
read(java.io.DataInputStream in)
|
void |
registerFailoverListener(FailoverListener l)
This invocation should be handled by the client-side interceptor chain. |
void |
sendTransaction(TransactionRequest request,
boolean checkForDuplicates)
|
void |
setClientID(java.lang.String clientID)
|
void |
setExceptionListener(ExceptionListener listener)
This invocation should either be handled by the client-side interceptor chain or by the server-side endpoint. |
void |
setRemotingConnection(JMSRemotingConnection conn)
|
void |
setState(HierarchicalState state)
|
void |
setVersionToUse(Version versionToUse)
|
void |
start()
|
void |
startAfterFailover()
|
void |
stop()
|
void |
synchronizeWith(DelegateSupport nd)
During HA events, delegates corresponding to new enpoints on the new server are created and the state of those delegates has to be transfered to the "failed" delegates. |
java.lang.String |
toString()
|
boolean |
unregisterFailoverListener(FailoverListener l)
This invocation should be handled by the client-side interceptor chain. |
void |
write(java.io.DataOutputStream out)
|
Methods inherited from class org.jboss.jms.client.delegate.DelegateSupport |
---|
doInvoke, doInvokeOneway, getClient, getID, getName, getState, handleThrowable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientConnectionDelegate(java.lang.String objectID, int serverID)
public ClientConnectionDelegate()
Method Detail |
---|
public void synchronizeWith(DelegateSupport nd) throws java.lang.Exception
DelegateSupport
synchronizeWith
in class DelegateSupport
java.lang.Exception
public void setState(HierarchicalState state)
setState
in class DelegateSupport
public void close() throws JMSException
Closeable
close
in interface Closeable
JMSException
public long closing(long sequence) throws JMSException
Closeable
closing
in interface Closeable
JMSException
public JBossConnectionConsumer createConnectionConsumer(Destination dest, java.lang.String subscriptionName, java.lang.String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
createConnectionConsumer
in interface ConnectionDelegate
JMSException
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException
createSessionDelegate
in interface ConnectionEndpoint
JMSException
public java.lang.String getClientID() throws JMSException
getClientID
in interface ConnectionEndpoint
JMSException
public ConnectionMetaData getConnectionMetaData() throws JMSException
getConnectionMetaData
in interface ConnectionDelegate
JMSException
public ExceptionListener getExceptionListener() throws JMSException
getExceptionListener
in interface ConnectionDelegate
JMSException
public void sendTransaction(TransactionRequest request, boolean checkForDuplicates) throws JMSException
sendTransaction
in interface ConnectionEndpoint
JMSException
public void setClientID(java.lang.String clientID) throws JMSException
setClientID
in interface ConnectionEndpoint
JMSException
public void setExceptionListener(ExceptionListener listener) throws JMSException
setExceptionListener
in interface ConnectionDelegate
JMSException
public void start() throws JMSException
start
in interface ConnectionEndpoint
JMSException
public void startAfterFailover() throws JMSException
startAfterFailover
in interface ConnectionDelegate
JMSException
public void stop() throws JMSException
stop
in interface ConnectionEndpoint
JMSException
public MessagingXid[] getPreparedTransactions() throws JMSException
getPreparedTransactions
in interface ConnectionEndpoint
JMSException
public void registerFailoverListener(FailoverListener l)
registerFailoverListener
in interface ConnectionDelegate
public boolean unregisterFailoverListener(FailoverListener l)
unregisterFailoverListener
in interface ConnectionDelegate
public IDBlock getIdBlock(int size) throws JMSException
getIdBlock
in interface ConnectionEndpoint
JMSException
public void setRemotingConnection(JMSRemotingConnection conn)
public JMSRemotingConnection getRemotingConnection()
public int getServerID()
public Version getVersionToUse()
public void setVersionToUse(Version versionToUse)
public java.lang.String toString()
toString
in class java.lang.Object
public void read(java.io.DataInputStream in) throws java.lang.Exception
read
in interface Streamable
read
in class DelegateSupport
java.lang.Exception
public void write(java.io.DataOutputStream out) throws java.lang.Exception
write
in interface Streamable
write
in class DelegateSupport
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |