org.axonframework.test.eventscheduler
Class StubScheduleToken

java.lang.Object
  extended by org.axonframework.test.eventscheduler.StubScheduleToken
All Implemented Interfaces:
Serializable, Comparable<StubScheduleToken>, ScheduleToken, ScheduledItem

public class StubScheduleToken
extends Object
implements ScheduleToken, Comparable<StubScheduleToken>, ScheduledItem

ScheduleToken returned by the StubEventScheduler.

Since:
1.1
Author:
Allard Buijze
See Also:
Serialized Form

Method Summary
 int compareTo(StubScheduleToken other)
           
 boolean equals(Object o)
           
 EventMessage getEvent()
          The Event scheduled for publication.
 org.joda.time.DateTime getScheduleTime()
          The time the event was scheduled for publication.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getScheduleTime

public org.joda.time.DateTime getScheduleTime()
Description copied from interface: ScheduledItem
The time the event was scheduled for publication.

Specified by:
getScheduleTime in interface ScheduledItem
Returns:
time the event was scheduled for publication

getEvent

public EventMessage getEvent()
Description copied from interface: ScheduledItem
The Event scheduled for publication.

Specified by:
getEvent in interface ScheduledItem
Returns:
the Event scheduled for publication

compareTo

public int compareTo(StubScheduleToken other)
Specified by:
compareTo in interface Comparable<StubScheduleToken>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2010-2016. All Rights Reserved.