org.drools.time.impl
Class DurationTimer
java.lang.Object
org.drools.time.impl.DurationTimer
- All Implemented Interfaces:
- Externalizable, Serializable, Timer
public class DurationTimer
- extends Object
- implements Timer, Externalizable
- See Also:
- Serialized Form
DurationTimer
public DurationTimer()
DurationTimer
public DurationTimer(long duration)
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
getDuration
public long getDuration()
createTrigger
public Trigger createTrigger(long timestamp,
String[] calendarNames,
org.drools.runtime.Calendars calendars)
- Specified by:
createTrigger in interface Timer
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.