Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | Oracle
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.httppubsub
Interface DeliveredMessageListener

All Superinterfaces:
  EventListener

    public interface DeliveredMessageListener

extends EventListener

DeliveredMessageListener is introduced in order to support server-side subscription to pub/sub server's channels. A implementation of this interface is needed to register on local client before this client subscribes itself to server's channels in order to have the listener notifieid when message is published to the channels. For example:

       PubSubServer server = FactoryFinder.getFactory(FactoryFinder.PUBSUBSERVER_FACTORY);
       LocalClient client = server.getClientManager().createLocalClient();
       client.registerMessageListener(new MyDeliveredMessageListener());
       server.subscribeToChannel(client, "/foo/bar");

Since:
  10.3.0.0
See Also:
  `PubSubServer.subscribeToChannel(LocalClient, String)`

Method Summary
`void` | `onPublish(DeliveredMessageEvent event)` Notification that the local client received an event message.

Method Detail

### onPublish

    void onPublish(DeliveredMessageEvent event)

  Notification that the local client received an event message. This method is not thread-safe, Pub/Sub Server may call it concurrently in multiple threads.

  Parameters:
    `event` - - the notification event

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD