cgl.narada.service.replay.impl
Class ReplayResponseEvent

java.lang.Object
  extended by cgl.narada.service.replay.impl.ReplayResponseEvent
All Implemented Interfaces:
ReplayResponse

public class ReplayResponseEvent
extends Object
implements ReplayResponse

A replay response that snapshots the response to a prior replay request. This provides information regarding whether the earlier request was successful, and if not, information regarding the cause of the failure.


Constructor Summary
ReplayResponseEvent(byte[] marshalledBytes)
           
ReplayResponseEvent(int templateId, int entityId, String replayRequestIdentifier, boolean success, String additionalInfo, long[] listOfSequencesToReplay)
           
ReplayResponseEvent(ReplayRequest replayRequest, boolean success, String additionalInfo, boolean hasSequenceAndTimestampValues, long[] sequences, long[] timestamps)
           
ReplayResponseEvent(ReplayRequest replayRequest, boolean success, String additionalInfo, boolean hasRequestedTimestamp, long sequenceNumber, long requestedTimestamp)
           
ReplayResponseEvent(ReplayRequest replayRequest, boolean success, String additionalInfo, long[] listOfSequencesToReplay)
           
 
Method Summary
 String getAdditionalInfo()
           
 byte[] getBytes()
           
 int getEntityId()
           
 long[] getListOfSequences()
           
 long[] getListOfTimestamps()
           
 String getReplayIdentifier()
           
 String getReplayTopic()
           
 long getRequestedTimestamp()
           
 long[] getSequenceInfoOfEventsToBeReplayed()
           
 long getSequenceNumber()
           
 int getTemplateId()
           
 boolean hasAdditionalInfo()
           
 boolean hasListOfSequencesToReplay()
           
 boolean hasReplayTopic()
           
 boolean hasRequestedTimestamp()
           
 boolean hasSequenceAndTimestampValues()
           
 boolean isSuccess()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplayResponseEvent

public ReplayResponseEvent(int templateId,
                           int entityId,
                           String replayRequestIdentifier,
                           boolean success,
                           String additionalInfo,
                           long[] listOfSequencesToReplay)

ReplayResponseEvent

public ReplayResponseEvent(byte[] marshalledBytes)

ReplayResponseEvent

public ReplayResponseEvent(ReplayRequest replayRequest,
                           boolean success,
                           String additionalInfo,
                           long[] listOfSequencesToReplay)

ReplayResponseEvent

public ReplayResponseEvent(ReplayRequest replayRequest,
                           boolean success,
                           String additionalInfo,
                           boolean hasSequenceAndTimestampValues,
                           long[] sequences,
                           long[] timestamps)

ReplayResponseEvent

public ReplayResponseEvent(ReplayRequest replayRequest,
                           boolean success,
                           String additionalInfo,
                           boolean hasRequestedTimestamp,
                           long sequenceNumber,
                           long requestedTimestamp)
Method Detail

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface ReplayResponse

getTemplateId

public int getTemplateId()
Specified by:
getTemplateId in interface ReplayResponse

getEntityId

public int getEntityId()
Specified by:
getEntityId in interface ReplayResponse

getReplayIdentifier

public String getReplayIdentifier()
Specified by:
getReplayIdentifier in interface ReplayResponse

hasReplayTopic

public boolean hasReplayTopic()
Specified by:
hasReplayTopic in interface ReplayResponse

getReplayTopic

public String getReplayTopic()
Specified by:
getReplayTopic in interface ReplayResponse

isSuccess

public boolean isSuccess()
Specified by:
isSuccess in interface ReplayResponse

hasAdditionalInfo

public boolean hasAdditionalInfo()

getAdditionalInfo

public String getAdditionalInfo()
Specified by:
getAdditionalInfo in interface ReplayResponse

hasListOfSequencesToReplay

public boolean hasListOfSequencesToReplay()

hasRequestedTimestamp

public boolean hasRequestedTimestamp()
Specified by:
hasRequestedTimestamp in interface ReplayResponse

getRequestedTimestamp

public long getRequestedTimestamp()
Specified by:
getRequestedTimestamp in interface ReplayResponse

getSequenceNumber

public long getSequenceNumber()
Specified by:
getSequenceNumber in interface ReplayResponse

getSequenceInfoOfEventsToBeReplayed

public long[] getSequenceInfoOfEventsToBeReplayed()
Specified by:
getSequenceInfoOfEventsToBeReplayed in interface ReplayResponse

hasSequenceAndTimestampValues

public boolean hasSequenceAndTimestampValues()
Specified by:
hasSequenceAndTimestampValues in interface ReplayResponse

getListOfSequences

public long[] getListOfSequences()
Specified by:
getListOfSequences in interface ReplayResponse

getListOfTimestamps

public long[] getListOfTimestamps()
Specified by:
getListOfTimestamps in interface ReplayResponse

toString

public String toString()
Overrides:
toString in class Object


For comments and suggestions please send e-mail to The NaradaBrokering Project