com.sun.im.provider
Interface PollArchiveProvider


public interface PollArchiveProvider

Poll Archive Provider interface. If an archive provider implements this interface, poll-related information is conveyed using the methods in this interface as opposed to onMessage otherwise. The PolsterHelper class is used to retrive information about a poll and later interpret responses to this poll.


Method Summary
 void newPoll(java.lang.String originator, Poll pollData)
          invoked when a new poll message is received
 void pollAnswer(java.lang.String originator, java.lang.String pollId, java.lang.String answer)
          invoked when a poll answer to an existing poll is received.
 

Method Detail

newPoll

public void newPoll(java.lang.String originator,
                    Poll pollData)
invoked when a new poll message is received

Parameters:
originator - poll answer sender
pollData - poll data

pollAnswer

public void pollAnswer(java.lang.String originator,
                       java.lang.String pollId,
                       java.lang.String answer)
invoked when a poll answer to an existing poll is received.

Parameters:
originator - poll answer sender
pollId - unique poll ID
answer - answer