org.zeroexchange.messaging.embedded.read
Interface MessageReader

All Known Implementing Classes:
DAOMessageReader

public interface MessageReader

The messages reader.

Author:
black

Method Summary
 long countUnread(Integer userId)
          Returns count of unread message for the specified user.
 Message getUserMessage(Integer messageId, Integer recepientId)
          Returns message for the specified user.
 SlicingDataSet<Message> getUserMessages(Integer userId, SortDescriptor sortDescriptor)
          Returns messages delivered to the specified user.
 

Method Detail

getUserMessages

SlicingDataSet<Message> getUserMessages(Integer userId,
                                        SortDescriptor sortDescriptor)
Returns messages delivered to the specified user.


getUserMessage

Message getUserMessage(Integer messageId,
                       Integer recepientId)
Returns message for the specified user.


countUnread

long countUnread(Integer userId)
Returns count of unread message for the specified user.



Copyright © 2013. All Rights Reserved.