de.fzj.unicore.wsrflite.messaging
Interface IMessaging

All Known Implementing Classes:
MessagingImpl

public interface IMessaging

Provides access to the messaging system of WSRFlite

Author:
schuller

Method Summary
 IMessagingChannel getChannel(String name)
          gets or creates a messaging channel with the given name
 PullPoint getPullPoint(String destination)
          get a pullpoint for reading messages targeted at the given destination
 IMessagingChannel getQueue(String name)
          Deprecated. use getChannel instead
 boolean hasMessages(String destination)
          checks if unread messages exist for the given destination
 void registerProvider(IMessagingProvider provider, String id)
          register a new messaging provider
 

Method Detail

registerProvider

void registerProvider(IMessagingProvider provider,
                      String id)
register a new messaging provider

Parameters:
provider -
See Also:
IMessagingProvider

getChannel

IMessagingChannel getChannel(String name)
                             throws MessagingException
gets or creates a messaging channel with the given name

Parameters:
name - - the name of the messaging queue
Returns:
a IMessagingChannel
Throws:
MessagingException

getQueue

IMessagingChannel getQueue(String name)
                           throws MessagingException
Deprecated. use getChannel instead

Throws:
MessagingException

getPullPoint

PullPoint getPullPoint(String destination)
                       throws MessagingException
get a pullpoint for reading messages targeted at the given destination

Parameters:
destination - - the name of the messaging queue
Returns:
a PullPoint
Throws:
MessagingException

hasMessages

boolean hasMessages(String destination)
                    throws MessagingException
checks if unread messages exist for the given destination

Parameters:
destination -
Returns:
true if unread messages exist
Throws:
MessagingException


Copyright © 2010. All Rights Reserved.