TIBCO Adapter SDK C++ Reference
MSubscriber::MSubscriber
MSubscriber
Constructor for creating an MSubscriber instance that uses an endpoint specification. By default, the subscriber is inactive.
Parameters
Parameters Description
MComponentRegistry* pComponentRegistry Component registry that holds this subscriber.
const MString& sObjectName Name of this subscriber instance. Must be unique.
const MEndpointSpec& endpointSpec The endpointSpec specification for this MSubscriber. See MEndpointSpec. The timeout value for this subscriber is specified in the endpoint specification. If the subscriber is activated and does not get an event within the specified timeout period, it returns and dispatches a timeout event. If the subscriber receives one (or more) events after activation but no additional events for amounts of time exceeding the timeout, there is no timeout event. Timeout is specified in milliseconds. Default is 0, that is, never time out. If no destination is specified by the endpointSpec an inbox or temporary topic or temporary queue subscriber will be created.
Mboolean bAutoConfirm = Mtrue Specify whether event is confirmed automatically or explicitly
Mboolean bMustActivate = Mtrue If set to true, the default, this subscriber is active when it is created. Otherwise, it is inactive and applications have to call the activate() method explicitly.
Exceptions
MException if any value in the endpointSpec specification is invalid.
Declaration
MSubscriber(MComponentRegistry* pComponentRegistry, const MString& sObjectName, const MEndpointSpec& endpointSpec, Mboolean bAutoConfirm = Mtrue, Mboolean bMustActivate = Mtrue) throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.