public abstract class JMSEndpoint extends Object
Modifier | Constructor and Description |
---|---|
protected |
JMSEndpoint(JMSConnector connector) |
Modifier and Type | Method and Description |
---|---|
byte[] |
call(byte[] message,
long timeout)
Send a message and wait for a response.
|
byte[] |
call(byte[] message,
long timeout,
HashMap properties)
Send a message and wait for a response.
|
protected Subscription |
createSubscription(MessageListener listener,
HashMap properties) |
boolean |
equals(Object object) |
int |
hashCode() |
void |
registerListener(MessageListener listener)
Register a MessageListener.
|
void |
registerListener(MessageListener listener,
HashMap properties)
Register a MessageListener.
|
void |
send(byte[] message)
Send a message w/o waiting for a response.
|
void |
send(byte[] message,
HashMap properties)
Send a message w/o waiting for a response.
|
void |
unregisterListener(MessageListener listener)
Unregister a message listener.
|
void |
unregisterListener(MessageListener listener,
HashMap properties)
Unregister a message listener.
|
protected JMSEndpoint(JMSConnector connector)
public byte[] call(byte[] message, long timeout) throws Exception
message
- timeout
- JMSException
Exception
public byte[] call(byte[] message, long timeout, HashMap properties) throws Exception
message
- timeout
- properties
- JMSException
Exception
public void send(byte[] message) throws Exception
message
- JMSException
Exception
public void send(byte[] message, HashMap properties) throws Exception
message
- properties
- JMSException
Exception
public void registerListener(MessageListener listener) throws Exception
listener
- JMSException
Exception
public void registerListener(MessageListener listener, HashMap properties) throws Exception
listener
- properties
- JMSException
Exception
public void unregisterListener(MessageListener listener)
listener
- public void unregisterListener(MessageListener listener, HashMap properties)
listener
- properties
- protected Subscription createSubscription(MessageListener listener, HashMap properties)
Copyright © The Apache Software Foundation. All Rights Reserved.