Open topic with navigation

TIBCO Rendezvous® 8.7.0

# TibrvListener()

Constructor

## Declaration

    TibrvListener(
        TibrvQueue          queue,
        TibrvMsgCallback    callback,
        TibrvTransport      transport,
        java.lang.String    subject,
        java.lang.Object    closure)
      throws TibrvException

## Purpose

Create a listener object to listen for inbound messages.

## Remarks

For each inbound message, place this event on the event queue.

Parameter | Description
`queue` | For each inbound message, place the event on this event queue.
`callback` | On dispatch, process the event with this interface implementation.
`transport` | Listen for inbound messages on this transport.
`subject` | Listen for inbound messages with subjects that match this specification. Wildcard subjects are permitted. The empty string is not a legal subject name.
`closure` | Store this closure data in the event object.

## Inbox Listener

To receive unicast (point-to-point) messages, listen to a unique inbox subject name. First call TibrvTransport.createInbox() to create the unique inbox name; then call TibrvListener() to begin listening. Remember that other programs have no information about an inbox until the listening program uses it as a reply subject in an outbound message.

## See Also

TibrvEvent.destroy()

TibrvMsgCallback

TibrvMsgCallback.onMsg()

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2023. Cloud Software Group, Inc. All Rights Reserved.