Search in sources :

Example 16 with TimerImpl

use of org.jboss.as.ejb3.timerservice.TimerImpl in project wildfly by wildfly.

the class EjbTimerXmlPersister method writeContent.

@Override
public void writeContent(XMLExtendedStreamWriter writer, List<TimerImpl> timers) throws XMLStreamException {
    writer.writeStartDocument();
    writer.writeStartElement(TIMERS);
    writer.writeDefaultNamespace(EjbTimerXmlParser_1_0.NAMESPACE);
    for (TimerImpl timer : timers) {
        if (timer instanceof CalendarTimer) {
            writeCalendarTimer(writer, (CalendarTimer) timer);
        } else {
            writeTimer(writer, timer);
        }
    }
    writer.writeEndElement();
    writer.writeEndDocument();
}
Also used : CalendarTimer(org.jboss.as.ejb3.timerservice.CalendarTimer) TimerImpl(org.jboss.as.ejb3.timerservice.TimerImpl)

Aggregations

TimerImpl (org.jboss.as.ejb3.timerservice.TimerImpl)11 CalendarTimer (org.jboss.as.ejb3.timerservice.CalendarTimer)5 IOException (java.io.IOException)4 SystemException (javax.transaction.SystemException)4 Method (java.lang.reflect.Method)3 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)3 ScheduleExpression (javax.ejb.ScheduleExpression)3 TimeoutMethod (org.jboss.as.ejb3.timerservice.persistence.TimeoutMethod)3 File (java.io.File)2 FileInputStream (java.io.FileInputStream)2 Serializable (java.io.Serializable)2 Connection (java.sql.Connection)2 PreparedStatement (java.sql.PreparedStatement)2 ResultSet (java.sql.ResultSet)2 SQLException (java.sql.SQLException)2 Date (java.util.Date)2 Map (java.util.Map)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 ConcurrentMap (java.util.concurrent.ConcurrentMap)2