Package com.sun.ejb.containers
Class TimerWrapper
- java.lang.Object
-
- com.sun.ejb.containers.TimerWrapper
-
- All Implemented Interfaces:
IndirectlySerializable
,jakarta.ejb.Timer
public class TimerWrapper extends Object implements jakarta.ejb.Timer, IndirectlySerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimerWrapper.SerializedTimerWrapper
Used by serialization code to serialize a TimerWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
boolean
equals(Object o)
jakarta.ejb.TimerHandle
getHandle()
Serializable
getInfo()
Date
getNextTimeout()
jakarta.ejb.ScheduleExpression
getSchedule()
SerializableObjectFactory
getSerializableObjectFactory()
long
getTimeRemaining()
int
hashCode()
boolean
isCalendarTimer()
boolean
isPersistent()
String
toString()
-
-
-
Method Detail
-
cancel
public void cancel() throws IllegalStateException, jakarta.ejb.NoSuchObjectLocalException, jakarta.ejb.EJBException
- Specified by:
cancel
in interfacejakarta.ejb.Timer
- Throws:
IllegalStateException
jakarta.ejb.NoSuchObjectLocalException
jakarta.ejb.EJBException
-
getTimeRemaining
public long getTimeRemaining() throws IllegalStateException, jakarta.ejb.NoMoreTimeoutsException, jakarta.ejb.NoSuchObjectLocalException
- Specified by:
getTimeRemaining
in interfacejakarta.ejb.Timer
- Throws:
IllegalStateException
jakarta.ejb.NoMoreTimeoutsException
jakarta.ejb.NoSuchObjectLocalException
-
getNextTimeout
public Date getNextTimeout() throws IllegalStateException, jakarta.ejb.NoMoreTimeoutsException, jakarta.ejb.NoSuchObjectLocalException
- Specified by:
getNextTimeout
in interfacejakarta.ejb.Timer
- Throws:
IllegalStateException
jakarta.ejb.NoMoreTimeoutsException
jakarta.ejb.NoSuchObjectLocalException
-
getInfo
public Serializable getInfo() throws IllegalStateException, jakarta.ejb.NoSuchObjectLocalException
- Specified by:
getInfo
in interfacejakarta.ejb.Timer
- Throws:
IllegalStateException
jakarta.ejb.NoSuchObjectLocalException
-
getHandle
public jakarta.ejb.TimerHandle getHandle() throws IllegalStateException, jakarta.ejb.NoSuchObjectLocalException
- Specified by:
getHandle
in interfacejakarta.ejb.Timer
- Throws:
IllegalStateException
jakarta.ejb.NoSuchObjectLocalException
-
getSchedule
public jakarta.ejb.ScheduleExpression getSchedule() throws IllegalStateException, jakarta.ejb.NoSuchObjectLocalException, jakarta.ejb.EJBException
- Specified by:
getSchedule
in interfacejakarta.ejb.Timer
- Throws:
IllegalStateException
jakarta.ejb.NoSuchObjectLocalException
jakarta.ejb.EJBException
-
isCalendarTimer
public boolean isCalendarTimer() throws IllegalStateException, jakarta.ejb.NoSuchObjectLocalException, jakarta.ejb.EJBException
- Specified by:
isCalendarTimer
in interfacejakarta.ejb.Timer
- Throws:
IllegalStateException
jakarta.ejb.NoSuchObjectLocalException
jakarta.ejb.EJBException
-
isPersistent
public boolean isPersistent() throws IllegalStateException, jakarta.ejb.NoSuchObjectLocalException, jakarta.ejb.EJBException
- Specified by:
isPersistent
in interfacejakarta.ejb.Timer
- Throws:
IllegalStateException
jakarta.ejb.NoSuchObjectLocalException
jakarta.ejb.EJBException
-
getSerializableObjectFactory
public SerializableObjectFactory getSerializableObjectFactory()
- Specified by:
getSerializableObjectFactory
in interfaceIndirectlySerializable
-
-