|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.exolab.jms.server.ServerConnectionImpl
Server implementation of the javax.jms.Connection interface.
ServerConnectionManagerImpl| Constructor Summary | |
protected |
ServerConnectionImpl(ServerConnectionManagerImpl manager,
long connectionId,
java.lang.String clientId,
MessageManager messages,
ConsumerManager consumers,
ResourceManager resources,
DatabaseService database,
Scheduler scheduler)
Construct a new ServerConnectionImpl. |
| Method Summary | |
void |
close()
Closes the connection. |
void |
closed(org.exolab.jms.server.ServerSessionImpl session)
Notify closure of a session |
ServerSession |
createSession(int acknowledgeMode,
boolean transacted)
Create a new session |
java.lang.String |
getClientID()
Returns the client identifier. |
long |
getConnectionId()
Returns the connection identifier. |
void |
setClientID(java.lang.String clientID)
Sets the client identifier for this connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ServerConnectionImpl(ServerConnectionManagerImpl manager,
long connectionId,
java.lang.String clientId,
MessageManager messages,
ConsumerManager consumers,
ResourceManager resources,
DatabaseService database,
Scheduler scheduler)
ServerConnectionImpl.manager - the connection managerconnectionId - the identifier for this connectionclientId - the client identifier. May be nullmessages - the message managerconsumers - the consumer managerresources - the resource manager| Method Detail |
public long getConnectionId()
getConnectionId in interface ServerConnectionpublic java.lang.String getClientID()
getClientID in interface ServerConnection
public void setClientID(java.lang.String clientID)
throws javax.jms.JMSException
setClientID in interface ServerConnectionclientID - the unique client identifierjavax.jms.JMSException - if the JMS provider fails to set the
client ID for this connection due to
some internal error.javax.jms.InvalidClientIDException - if the JMS client specifies an invalid
or duplicate client ID.java.lang.IllegalStateException - if the JMS client attempts to set a
connection's client ID at the wrong time
or when it has been administratively
configured.
public ServerSession createSession(int acknowledgeMode,
boolean transacted)
throws javax.jms.JMSException
createSession in interface ServerConnectionacknowledgeMode - indicates whether the consumer or the client will
acknowledge any messages it receives; ignored if
the session is transacted. Legal values are
Session.AUTO_ACKNOWLEDGE,
Session.CLIENT_ACKNOWLEDGE, and
Session.DUPS_OK_ACKNOWLEDGE.transacted - indicates whether the session is transactedjavax.jms.JMSException - for any JMS errorpublic void close()
close in interface ServerConnectionorg.exolab.jms.server.ServerConnectionjavax.jms.JMSException - for any JMS errorpublic void closed(org.exolab.jms.server.ServerSessionImpl session)
session - the closed session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||