public class SubscriberEndpoint extends Object implements Endpoint
SubscriberEndpoint represents the Endpoint on the appliance to
which an application must bind to create a flow for content-routed messages
destined for a particular subscriber. These messages are directed to the
subscriber based on its XPath subscriptions.
A SubscriberEndpoint may be
acquired from
JCSMPFactory using a configured JCSMPSession, and it is only valid
for use with that session.
SubscriberEndpoint, which will receive Guaranteed messages
matching the XPath subscriptions on that subscriber.
// session is a JCSMPSession, no default message consumer has been acquired
XpeProperties xp = new XpeProperties().setExpression("/*");
session.addSubscription(JCSMPFactory.onlyInstance().createXpe(xp));
Endpoint se = JCSMPFactory.onlyInstance().createSubscriberEndpoint(session);
FlowReceiver qr = session.createFlow(se, null, null);
qr.start();
BytesXMLMessage rxmsg = qr.receive(1000);
// process the message
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of the Endpoint.
|
String |
getVirtualRouterName()
The virtual router name identifier for the Endpoint.
|
boolean |
isDurable()
Whether this Endpoint is durable.
|
public String getName()
Endpointpublic boolean isDurable()
Endpointpublic String getVirtualRouterName()
EndpointgetVirtualRouterName in interface EndpointCopyright 2004-2025 Solace Corporation. All rights reserved.